Skip to main content
Glama

Lookup Protocol or Token by Name

pacta_lookup_protocol
Read-onlyIdempotent

Resolve a protocol or token name, symbol, slug, or 0x address to Pacta's verified record: canonical slug, URL, checksummed contract/controller, classification evidence, and preflight risk arguments.

Instructions

Resolve a protocol or token name, symbol, slug or 0x address (e.g. 'Aave', 'Ethena', 'USDe', 'Moonwell', 'kUSD') to Pacta's verified record: canonical slug and page URL, checksummed primary contract and controller, classification with its evidence basis (Base-EAS-attested vs RPC-observed only), and preflightArgs {chain, address} ready for pacta_check_preflight. 86 protocols + 8 briefs; free, no RPC. An empty query lists what Pacta tracks.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pacta_lookup_protocol"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoprotocol, brief or all (default).
chainNo
limitNoDefault 10 (20 when listing).
queryNoProtocol / token name, symbol, slug or 0x address. Empty or '*' lists the catalog.
caller_agentNoIdentifier of the calling AI agent, IDE, or framework (e.g. 'claude-code', 'cursor', 'windsurf', 'coinbase-agentkit', 'elizaos', 'langchain', 'chatgpt', 'gemini', 'custom-agent'). Optional attribution (omitted = 'unspecified'). Lowercase slug only; never include personal names, emails, or secrets.
caller_purposeNoOptional: operational workflow context for this pre-execution check (closed enum).
requester_roleNoOptional: high-level role category of the requester or system running this check (closed enum; no personal data).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.4
    • changedInput schema / properties / caller_agent / description
      Previous value: -"Identifier of the calling AI agent, IDE, or framework (e.g. 'claude-code', 'cursor', 'windsurf', 'coinbase-agentkit', 'elizaos', 'langchain', 'chatgpt', 'gemini', 'custom-agent'). Required on the free MCP tier. Lowercase slug only; never include personal names, emails, or secrets."New value: +"Identifier of the calling AI agent, IDE, or framework (e.g. 'claude-code', 'cursor', 'windsurf', 'coinbase-agentkit', 'elizaos', 'langchain', 'chatgpt', 'gemini', 'custom-agent'). Optional attribution (omitted = 'unspecified'). Lowercase slug only; never include personal names, emails, or secrets."
    • changedInput schema / properties / caller_purpose / description
      Previous value: -"Operational workflow context for this pre-execution check (closed enum)."New value: +"Optional: operational workflow context for this pre-execution check (closed enum)."
    • changedInput schema / properties / limit / maximum
      Previous value: -61New value: +94
    • changedInput schema / properties / requester_role / description
      Previous value: -"High-level role category of the requester or system running this check (closed enum; no personal data)."New value: +"Optional: high-level role category of the requester or system running this check (closed enum; no personal data)."
    • changedInput schema / required
      Previous value: -[
      -  "caller_agent",
      -  "requester_role",
      -  "caller_purpose"
      -]New value: +[]
  2. Addedv0.1.3

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description still adds substantive behavior beyond them: no RPC cost, catalog size (86 protocols + 8 briefs), and the crucial distinction between Base-EAS-attested and RPC-observed-only classification, which affects how much an agent should trust the result. Pagination behavior for the limit parameter is not discussed, keeping this below a 5.

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 resolution behavior and the returned fields are front-loaded in the first sentence, followed by two short supporting sentences on cost and the empty-query case. The parenthetical example lists and field enumerations are dense but each carries real disambiguating value. Slightly long for a lookup tool, but nothing is clearly wasted.

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?

With 7 optional parameters, no output schema, and a read-only lookup, the description does the work of describing the return payload (slug, URL, contract, controller, classification, preflightArgs), which the missing output schema would otherwise leave opaque. The attribution parameters (caller_agent, caller_purpose, requester_role) are not explained in the description, though the schema covers them at 86%. Overall complete enough for correct invocation.

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 86%, so the schema already documents most parameters including the enum options and the caller_agent pattern. The description adds some meaning by clarifying the accepted query forms ('Aave', 'Ethena', 'USDe', 'kUSD' as examples of name/symbol/slug) and the empty-query listing behavior, but it says nothing about kind, chain, limit, or the attribution parameters. Baseline 3 is appropriate when the schema does the heavy lifting.

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 description opens with a specific verb and resource: 'Resolve a protocol or token name, symbol, slug or 0x address ... to Pacta's verified record', then enumerates exactly what the record contains (canonical slug, page URL, checksummed contract and controller, classification with evidence basis, preflightArgs). That level of specificity makes it clearly distinguishable from siblings such as pacta_check_preflight, which it explicitly feeds.

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 states the operative context (free, no RPC) and the downstream handoff ('preflightArgs {chain, address} ready for pacta_check_preflight'), which tells an agent this is the discovery step preceding a preflight check. It also documents the degenerate case: 'An empty query lists what Pacta tracks.' What is missing is any explicit when-not or exclusion guidance versus the other pacta_* siblings.

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