Skip to main content
Glama

get_channel_status

Verify an x402 payment channel is active and has capacity before settling a micro-payment. Check status, currency, network, and last settlement to avoid failed transactions.

Instructions

Retrieve the current operational status, limits, and settlement state of an x402 payment channel, identified by its channel_id.

Use this as the first step of the channel lifecycle before screening an address or verifying a payment: confirm the channel is ACTIVE and has capacity so a downstream x402 micro-payment can settle.

Returns a JSON object: { channelId, status ('ACTIVE'), currency ('USDC'), network ('solana-devnet'), capacity ('10000.00'), lastSettlementBlock }. A blank or malformed channel_id is rejected with a validation error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channel_idYesx402 payment channel identifier (1-128 chars; alphanumeric plus '.', '-', '_'). Example: 'chan_smoke_test_001'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.13
    • addedInput schema / properties / channel_id / description
      Added value: +"x402 payment channel identifier (1-128 chars; alphanumeric plus '.', '-', '_'). Example: 'chan_smoke_test_001'."
  2. Addedv1.0.5

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the exact return shape, including fields and example values, and mentions validation error behavior for blank or malformed channel_id. It does not explicitly state read-only semantics or auth/rate-limit behavior, but 'Retrieve' and the status-check context make the read-only nature reasonably clear.

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?

The description is compact and front-loaded: purpose, usage context, and return shape are each covered in a single sentence with no filler. Every sentence contributes actionable information.

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 simple one-parameter read tool with no output schema, the description provides the necessary return shape, usage context, and validation behavior. It is nearly complete, though it does not describe behavior for unknown channel IDs or non-ACTIVE statuses, and the literal-looking status ('ACTIVE') is slightly ambiguous.

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 the schema already documents channel_id with format constraints and an example. The description adds little beyond saying the channel is 'identified by its channel_id,' so the baseline of 3 is appropriate.

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 uses a specific verb ('Retrieve') and names the exact resource ('x402 payment channel') and the aspects returned (operational status, limits, settlement state). It also distinguishes this tool from siblings by positioning it as the first lifecycle step before screening or payment verification.

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 explicitly states when to use the tool: 'Use this as the first step of the channel lifecycle before screening an address or verifying a payment.' However, it does not explicitly name sibling tools or state when not to use it, so it falls just short of full alternative routing.

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