Skip to main content
Glama

Banco pelo código

lookup_bank
Read-onlyIdempotent

Um banco pelo código de compensação (COMPE, 3 dígitos: "260" é o Nubank, "001" o Banco do Brasil) ou pelo ISPB (8 dígitos, o que aparece no Pix): nome curto, nome completo e os dois códigos.

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": {
      "code": "<code>"
    },
    "name": "lookup_bank"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesO código COMPE ("001", "1", "260") ou o ISPB ("00000000", "18236120").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds real value by disclosing what is returned (short name, full name, and both codes), which matters because there is no output schema. It does not mention behavior on unknown or malformed codes, keeping it short of 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.

Conciseness5/5

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

A single sentence that front-loads the lookup, then the two code schemes, then the returned fields. No filler, no repetition of the title.

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 one-parameter, non-destructive lookup with no output schema, the description covers accepted inputs, examples, and the returned fields, which is nearly everything an agent needs. Only error/not-found behavior is left unspecified.

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, but the description adds meaning beyond the schema by noting the ISPB is the identifier that appears in Pix and by giving recognizable bank examples for each code type. That helps an agent decide which identifier form it holds.

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?

States a specific verb and resource (look up a bank) plus both accepted identifier schemes and the exact fields returned. The COMPE/ISPB distinction with concrete examples ("260" = Nubank, "001" = Banco do Brasil) makes it unambiguously different from a listing tool like list_banks.

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?

Gives clear guidance on which input formats are accepted and hints at the Pix/ISPB context, so an agent knows what to pass. However, it never says when to prefer this over list_banks or what to do when only a bank name is known, leaving the sibling routing to inference.

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