Skip to main content
Glama
KaiSign MCP Server

KaiSign MCP Server

Official
by Kai-Sign

get_cached_metadata

Check if contract metadata is cached before decoding to avoid re-transmitting ABI and save tokens. Returns cache status, token savings, and verification.

Instructions

Diagnostic: retrieve cached metadata status for a contract.

Use this to check if metadata is cached before making decode calls. Cached metadata provides significant token savings by avoiding re-transmission of full ABI and format definitions.

Returns:

  • Cache status (found/not found)

  • Approximate token count saved

  • Verification status

  • Cache statistics (hit rate, total entries)

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": {
      "contractAddress": "<contractAddress>"
    },
    "name": "get_cached_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainIdNoChain ID
contractAddressYesContract address to check (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the full behavioral burden. It implies a read-only lookup through "retrieve" and "check" and enumerates what the response contains, but says nothing about permissions, network calls, or side effects that an agent might need to know.

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 description is front-loaded with the purpose and usage note, then a compact bulleted Returns list. The token-savings sentence is somewhat promotional but still conveys relevant behavior, so waste is minimal.

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?

This is a simple two-parameter read tool with no output schema, and the Returns section fills that gap by describing the four response fields. It is essentially complete for the tool's complexity, with only access/prerequisite details missing.

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 both parameters are already documented with format and default. The description adds only the framing that the contract address identifies the target contract, which is marginally useful but largely restates the schema.

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?

The description opens with a specific verb and resource ("retrieve cached metadata status for a contract") and labels the tool as a diagnostic, which separates it from the decode/prepare siblings. It does not, however, explicitly distinguish itself from other cache-related siblings such as clear_cache or prune_expired_cache.

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 gives a concrete use condition: check cache state "before making decode calls," and explains the payoff (avoiding re-transmission of ABI/format definitions). There is no explicit when-not guidance or named alternative for the case where the cache is empty.

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