Skip to main content
Glama

WritersLogic verifiable AI agents

mcp-tool-pin

MCP tool pin: detect changed tool definitions (rug pulls) and hidden Unicode — Send an MCP server's tools/list result (up to 200 tools) and, after the first call, the hashes you approved. Returns a reproducible manifest hash, a per-tool hash, which tools were added, removed or changed since approval (silent description and schema edits are how MCP rug pulls and tool poisoning land), and Unicode smuggling findings in every name, description and schema string. Call it at sessi

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": {
      "tools": "<tools>"
    },
    "name": "mcp-tool-pin"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolsYesThe tools array from an MCP tools/list response, as received.
approvedToolsNoMap of tool name to the per-tool hash you approved; enables the added/removed/changed diff.
approvedManifestHashNomanifestHash from the call you approved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does most of it: it discloses the return payload in detail (manifest hash, per-tool hash, added/removed/changed diff, Unicode findings scoped to name/description/schema strings) and describes the output as reproducible, implying determinism. It does not explicitly say the tool performs no network fetches or writes (i.e., that it only analyzes the payload you hand it), which is the one behavioral fact an agent still has to infer.

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

Conciseness4/5

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

The core capability and the input shape are front-loaded in the opening clause, and the parenthetical about silent description/schema edits justifies the tool's existence rather than padding it. The definition loses a point for the truncated final sentence ('Call it at sessi'), which leaves a dangling instruction the agent must guess at.

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?

For a three-parameter tool with no output schema and nested object inputs, the description compensates well by enumerating every return field and naming the threat model. The missing pieces are the truncated call-timing instruction and any note on how to interpret or act on a positive diff finding.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description earns a bump by explaining the temporal relationship between the three parameters: `tools` on the first call, then `approvedTools` and `approvedManifestHash` from the call you approved. That is genuine meaning beyond the schema's per-field text, though it doesn't clarify what happens if only one of the two approval parameters is supplied.

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

Purpose5/5

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

The first sentence names a specific verb+resource pair ('detect changed tool definitions') and two distinct capabilities (rug-pull diffing and hidden Unicode detection), plus the exact input it consumes ('an MCP server's tools/list result'). An agent can tell this apart from any hashing or audit sibling without opening the schema.

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?

It establishes the invocation pattern clearly: first call with just `tools`, subsequent calls with the previously approved hashes, and a stated trigger ('Call it at sessi…' — truncated, presumably session start). What's missing is any explicit statement of when NOT to use it or what to do when a diff reports changes, but the operating context is otherwise unambiguous.

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