Skip to main content
Glama
stellar-mcp

stellar-mcp

by ijele-don

get_contract_events

Query recent Soroban contract events by contract ID and decode their topics and values to inspect on-chain activity and debug contract behavior.

Instructions

Query recent Soroban contract events for a contract ID and decode their topics and values.

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": {
      "contract_id": "<contract_id>"
    },
    "name": "get_contract_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax events to return (1-100, default 20)
networkNoOptional network override (defaults to configured STELLAR_NETWORK).
contract_idYesSoroban contract ID (C...)
start_ledgerNoStarting ledger sequence (defaults to latestLedger - 1000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It reveals that results are decoded (topics and values) but says nothing about the implicit ~1000-ledger lookback, result ordering, pagination/limit behavior, or what happens for an unknown contract ID or unreachable network.

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 front-loaded sentence with zero filler; the scope ('recent') and the decoding behavior are stated immediately with no redundancy.

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?

With all four parameters documented and no output schema, the description is close to adequate but omits anything about return shape (list vs. cursor), ordering, or the default ledger window that governs 'recent'. For a read-only events query with no annotations, a bit more behavioral context would help.

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 100%, so limit, network, contract_id, and start_ledger are all documented in the schema. The description only echoes that a contract ID is required and adds no format, ordering, or defaulting detail beyond the schema, making the baseline 3 appropriate.

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 names a specific verb ('Query') and resource ('recent Soroban contract events') scoped to a contract ID, and adds that topics and values are decoded, which distinguishes it from raw-ledger siblings like get_transaction. It stops short of explicitly contrasting itself with any named sibling tool.

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 when-to-use or when-not-to-use guidance and no reference to alternatives such as get_transaction or fetch_contract_spec. The word 'recent' implies a bounded lookback but the actual window is never stated in the description.

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