Skip to main content
Glama

Discover x402 Gateway Configuration

pacta_x402_discover
Read-onlyIdempotent

Checks whether x402 is configured and, if PACTA_X402_URL is set, retrieves discovery and sample control-plane endpoints to verify x402 availability.

Instructions

Return x402 configuration status; when PACTA_X402_URL is set, also fetch /.well-known/x402 and /v1/sample/control-plane.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pacta_x402_discover"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, closed-world behavior, so the bar is lower. The description adds real value by disclosing environment-dependent branching (PACTA_X402_URL) and the two concrete paths fetched, but it does not say what happens when the variable is unset or how failures surface.

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 a semicolon-delimited conditional clause; no filler, and the primary behavior precedes the conditional detail.

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?

The tool is simple (no params, no output schema), but with no output schema there is no structured description of what 'configuration status' contains, and the unset/failure path is unspecified. Adequate to invoke correctly, but thin on what the agent will actually receive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4; the schema is empty and nothing in the description is needed to explain arguments. The mention of PACTA_X402_URL correctly signals configuration is supplied via environment rather than input.

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+resource ('Return x402 configuration status') and names the concrete endpoints fetched when PACTA_X402_URL is set. An agent can tell it is a discovery/config-read tool, though it does not explicitly distinguish itself from sibling probes like pacta_scan_control_plane or pacta_lookup_protocol.

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

Usage Guidelines3/5

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

Usage is only implied by the 'discover configuration' framing; there is no explicit statement of when to call this versus the many other pacta_* probes. The conditional branch (env var set) is a behavioral condition, 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.