Skip to main content
Glama

x402_update_endpoint_price

Updates the price of an existing payment-protected HTTP endpoint by specifying its path, method, and new USD price.

Instructions

Update the price for an existing protected endpoint

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": {
      "path": "<path>",
      "method": "<method>",
      "newPrice": "<newPrice>"
    },
    "name": "x402_update_endpoint_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe endpoint path to update
methodYesHTTP method
newPriceYesNew price in USD format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 burden, yet it discloses nothing about authorization requirements, whether the change is reversible, how in-flight or already-issued payment requests are affected, or what errors arise for an unknown path/method pair. For a mutation tool with zero annotation coverage this is a substantial gap.

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?

A single front-loaded sentence with zero filler, so nothing needs trimming. The brevity comes at the cost of substance rather than being a model of efficiency, which keeps it from a 5.

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

Completeness2/5

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

All three required parameters are documented in the schema and there is no output schema to explain, but an unannotated mutation tool should still describe permissions, side effects, and failure modes. Those are entirely absent, leaving the definition thin for the operation's risk profile.

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 coverage is 100% and each of the three parameters has its own description plus an enum for method, so the schema already does the documentation work. The description adds no format or validation detail beyond what is structured, which is the expected baseline.

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 (update) and resource (price for an existing protected endpoint), which is distinguishable from siblings like x402_create_protected_endpoint and x402_list_protected_endpoints. It stops short of explicitly naming a sibling or clarifying scope boundaries, so a 4 rather than a 5.

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 guidance on when to use this versus recreating the endpoint, nor any stated preconditions such as the endpoint already being registered or the caller needing ownership. The word 'existing' hints at a prerequisite but never states what happens if it is unmet.

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