Skip to main content
Glama
YC GraphQL MCP

YC GraphQL MCP

by arthurcolle

yc_commit_mutation

DestructiveIdempotent

Commit a reviewed GraphQL mutation once using its receipt ID and confirmed digest, then verify durable results; rejected or uncertain outcomes return errors instead of blind retries.

Instructions

Execute the previously reviewed mutation once, bound to its exact digest and authenticated target. A successful GraphQL envelope alone is insufficient: rejected, unverified and uncertain results are errors with durable receipts. Read back all changes; never retry blindly.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "receiptId": "<receiptId>",
      "confirmDigest": "<confirmDigest>"
    },
    "name": "yc_commit_mutation"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptIdYes
confirmDigestYes

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
untrustedContentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag the call as destructive, non-read-only and open-world, but the description adds what those flags cannot: a successful GraphQL envelope is not proof of success, and rejected, unverified or uncertain outcomes are errors carrying durable receipts. That is exactly the failure-mode context an agent needs before firing a destructive mutation, plus a read-back and no-blind-retry directive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the action and its binding, then the error semantics, then the operational imperative. No filler and no repetition of schema or annotation content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists, so return shape need not be explained, and the description covers the high-risk behavior: digest binding, error taxonomy, durable receipts, read-back. What's missing is whether the receipt is consumed on success, whether a failed or uncertain outcome can leave partial state, and where the receiptId is obtained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so both parameters are bare format-constrained strings, and the description is the only source of meaning: it ties 'exact digest' to confirmDigest and 'previously reviewed mutation' to receiptId. It does not say where the receipt comes from, that the digest must match the reviewed payload byte-for-byte, or how mismatch errors surface, so it only partly compensates for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Execute the previously reviewed mutation once, bound to its exact digest and authenticated target" gives a specific verb (execute), a specific resource (a previously reviewed mutation), and its binding constraints. It clearly distinguishes this from read-only query siblings and implies a prior prepare/review step, though it never names yc_prepare_mutation or yc_mutation_receipts explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Previously reviewed" establishes the precondition, and "never retry blindly" plus "Read back all changes" gives post-call guidance an agent would otherwise get wrong. No alternative tool is named and no explicit when-not-to-use condition is stated, so it stops short of routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.