Skip to main content
Glama

Update an ICP draft

updateIcpDraft
DestructiveIdempotent

Saves a new name or definition to an ICP's unpublished draft, checked against the draft revision. The published version is unchanged until publishIcp. Repeating the call with the same input leaves the same result.

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": {
      "params": "<params>",
      "body": "<body>"
    },
    "name": "updateIcpDraft"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
paramsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false; the description adds real context by scoping the effect to the unpublished draft and stating the published version is untouched until publishIcp, which meaningfully bounds the blast radius. It also discloses the optimistic-concurrency check against the draft revision, which annotations do not cover. Minor deduction because 'Repeating the call with the same input leaves the same result' essentially restates idempotentHint=true.

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 short sentences, front-loaded with the core action, then the scope of effect, then the idempotency note. No filler and nothing buried.

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

Completeness3/5

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

Given a very large nested body schema, no output schema and tool-level annotations that cover the safety profile, the description covers effect scope, revision checking and idempotency well. It still leaves open what happens on a revision mismatch (error vs. overwrite), what the response contains, and how partial updates behave against the existing draft.

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 the description must carry the load; it does explain the intent of name, definition and expected_revision ('checked against the draft revision' conveys optimistic concurrency, which the bare integer field does not). However, with a deeply nested definition object, it says nothing about whether name and definition are partial or full replacements, nor about the valid schema_version variants.

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?

States a specific verb and resource ('Saves a new name or definition to an ICP's unpublished draft') and pins the target to the draft rather than the published ICP. It clearly separates itself from publishIcp, though it does not explicitly contrast with the closely related createIcpDraft or the update tools in the neighborhood.

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

Usage Guidelines3/5

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

The sentence 'The published version is unchanged until publishIcp' implies the intended window of use (editing before publishing) and names the tool that follows. There is no explicit when-to-use / when-not-to-use statement, and no mention of what to do if the revision check fails or which sibling to pick instead.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources