Skip to main content
Glama

Invoke capability

invoke_capability

WHEN: Use when you have chosen a listed skill, the user wants names that match it now, and you are ready to pay.

NOT for: Do not use for quotes, news, or a chart pattern nowhere on this endpoint (head-and-shoulders — say we don’t have that). Do not refuse a NAMED indicator before get_capability ta-primitives has been read, and do not rebuild a held recipe from memory: the composing rules in the routing guide apply to every call here.

Returns: { ok, result } or { ok: false, error }. A priced capability answers an unpaid call with an x402 PaymentRequired naming the exact amount, asset, network and recipient; nothing executes and nothing is charged until a payment verifies. A scan that ran and returned zero names is a completed billable run, not an error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesCapability id
inputYesInput conforming to the capability's input_schema

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full transparency burden and does so thoroughly. It discloses the return envelope, the x402 PaymentRequired behavior with exact payment details, the fact that nothing executes or charges until payment verifies, and the nuance that a zero-result scan is a billable run rather than an error.

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, organized by WHEN / NOT for / Returns, and every sentence provides distinct decision-relevant information. The key usage trigger is front-loaded, keeping the reader from having to parse dense prose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the absence of annotations and output schema, the description fully covers what is needed to invoke and interpret the tool: return format, payment flow, error semantics, and interaction with the get_capability sibling. It also signals that an unpaid call is not a real failure.

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?

The input schema already covers both parameters with 100% description coverage: 'id' as capability id and 'input' as an object conforming to the capability's input_schema. The tool description adds little parameter-level meaning, 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?

States a clear action ('invoke a listed skill') and the specific condition for using it (user wants matching names now and is ready to pay). Explicitly distinguishes itself from other operations by naming what it is NOT for, such as quotes, news, or unsupported chart patterns.

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

Usage Guidelines5/5

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

Provides both positive and negative usage conditions. It names when to invoke, when not to invoke, and even routes the agent to read get_capability ta-primitives before refusing a named indicator. This is explicit contextual guidance beyond mere tool selection.

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