Skip to main content
Glama

Prepare Agent Commerce Upgrade

prepare_agent_commerce_upgrade
Read-onlyIdempotent

Turn a public storefront URL into an implementation-ready agent-commerce upgrade plan: fresh audit evidence, ordered remediation tasks, deterministic acceptance assertions, artifact targets, and a verification handoff. Use when a coding agent needs to fix the site rather than merely score it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesPublic HTTP(S) website or storefront to prepare for agent commerce.
paymentResourceUrlNoOptional exact paid machine resource when x402 readiness is part of the upgrade.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes
auditYes
implementationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds useful behavior context (deterministic acceptance assertions, verification handoff) but says nothing about authentication needs, rate limits, or what fresh audit evidence means in practice.

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?

Two sentences, zero filler, with the outcome (the upgrade plan) front-loaded and the usage condition trailing correctly. The deliverable list is dense but every item distinguishes this tool from a plain scorer.

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?

With rich annotations and an output schema present, the description only needs to cover intent and routing, which it largely does. Minor gaps remain around prerequisites (the site must be public/reachable) and why the optional x402 parameter matters, but nothing an agent needs to invoke it correctly is missing.

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 both parameters are documented in the schema, so the description is not required to compensate here. It mentions neither 'url' nor 'paymentResourceUrl' or when the optional paid-resource parameter is relevant, leaving the schema to do all the work.

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 concrete transformation (public storefront URL → implementation-ready upgrade plan) and enumerates the deliverables: audit evidence, ordered remediation tasks, acceptance assertions, artifact targets, verification handoff. It also implicitly distinguishes itself from audit_agent_commerce_readiness by framing the output as fixing rather than scoring.

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 second sentence gives a clear selection condition ('when a coding agent needs to fix the site rather than merely score it'), which routes the agent toward this tool and away from the pure-audit sibling. It stops short of naming siblings or stating exclusions like prerequisites or cases where diagnose/probe should run first.

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