Skip to main content
Glama

Query Transaction Mempool

cardano_query_tx_mempool
Read-onlyIdempotent

Inspect a Cardano node's transaction mempool: retrieve stats, fetch the next pending transaction, or verify whether a specific tx ID is present.

Instructions

Query the transaction mempool. Supports three subcommands: info (mempool stats), next-tx (next transaction), has-tx (check if a specific tx is in mempool).

Args:

  • subcmd (string): One of "info", "next-tx", "has-tx" (default: "info")

  • tx_id (string, optional): Transaction ID hash for has-tx subcommand

Returns: Mempool information based on subcommand.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tx_idNoTransaction ID hash (required for has-tx)
subcmdNoMempool query subcommandinfo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 fully covered. The description adds only the subcommand semantics and a thin return note, so it clears the lowered bar but adds little beyond structured fields.

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?

Front-loads the purpose, then lists subcommands and args compactly. The args block duplicates the schema somewhat, but nothing is wasted or buried.

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 no output schema, the description should carry the return-value burden, but 'Returns: Mempool information based on subcommand' is too vague to tell an agent what info, next-tx, and has-tx actually yield. Adequate for invocation, incomplete for interpreting results.

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% and both parameters are documented there, including the enum and the has-tx requirement. The description's arg list largely restates the schema rather than adding format or constraint detail, so the baseline 3 applies.

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?

States a specific verb and resource (query the transaction mempool) and enumerates the three subcommands with one-line purposes, so an agent can tell it apart from the other cardano_query_* siblings that target different ledgers.

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?

The subcommand list effectively tells the caller which mode to pick: info for stats, next-tx for the next transaction, has-tx for membership checks. It doesn't state when to prefer this over siblings like cardano_transaction_view, but the internal routing is clear.

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

Deploy Server

Other Tools