Skip to main content
Glama

BusCalc — Business & Trade Calculations

abi selector

buscalc_chain_abi_selector
Read-onlyIdempotent

Solidity function selector (first 4 bytes of keccak256 of the canonical signature) and event topic0 (full keccak256). Example: transfer(address,uint256) -> 0xa9059cbb. Put tool fields inside inputs. Supply units or modelVersion only when listed in inputSchema. Follow its required fields and exact choices. Do not pass the REST calculator field inside MCP arguments.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "inputs": {
        "signature": "transfer(address,uint256)"
      }
    },
    "name": "buscalc_chain_abi_selector"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYes
modelVersionNo

Output Schema

NameRequiredDescriptionDefault
unitsNo
inputsYes
receiptYes
resultsYes
sourceURLYes
calculatorYes
modelVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior3/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 the safety profile is covered. The description adds the deterministic algorithm (first 4 bytes vs full keccak256), which is real behavioral context, but says nothing about signature canonicalization rules or error behavior on malformed input.

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

Conciseness3/5

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

The definition and example are front-loaded and earn their place, but three of the six sentences are generic boilerplate about field placement and REST fields that repeat across the catalog rather than informing this call.

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?

An output schema exists, so return values need not be explained, and annotations cover safety. Still, for a tool whose only real input is a canonical signature string, the description omits the canonicalization rules (no spaces, types not names, how to express event parameters) that determine a correct call.

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% across 2 parameters (one a nested object), so the description must compensate. It does partially: the example shows the expected canonical signature format and 'Put tool fields inside inputs' explains the nested wrapper, but modelVersion, the 1000-char limit, and how event signatures are expressed are left unexplained.

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 states precisely what is computed: the 4-byte Solidity function selector (keccak256 prefix) and the full event topic0, backed by a concrete example (transfer(address,uint256) -> 0xa9059cbb). It does not differentiate from the sibling buscalc_chain_abi_codec, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus the abi_codec sibling or when a signature yields a selector vs an event topic0. The remaining sentences ('Put tool fields inside inputs', 'Do not pass the REST calculator field inside MCP arguments') are argument-placement mechanics, not when-to-use guidance.

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