MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / annotationsFor

Function annotationsFor

packages/plugins/graphql/src/sdk/plugin.ts:568–576  ·  view source on GitHub ↗
(binding: OperationBinding)

Source from the content-addressed store, hash-verified

566};
567
568const annotationsFor = (binding: OperationBinding): ToolAnnotations => {
569 if (binding.kind === "mutation") {
570 return {
571 requiresApproval: true,
572 approvalDescription: `mutation ${binding.fieldName}`,
573 };
574 }
575 return {};
576};
577
578// ---------------------------------------------------------------------------
579// Auth method rendering (D11) — apply the connection's resolved values through

Callers 1

buildToolDefsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected