Skip to main content
Glama

commerce_spend_analysis

Destructive

Analyze commerce spending to uncover trends, identify cost-saving opportunities, and support strategic decisions.

Instructions

Run the commerce domain agent action spend_analysis.

Routes through the platform's domain-agent dispatcher under your JWT, tenant, and company scope.

Args: message: Free-text objective for the action. inputs: Optional JSON string of structured inputs for the action.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputsNo{}
messageNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the description need not repeat those. It does add useful behavioral context about routing through a domain-agent dispatcher under JWT/tenant/company scope. However, it does not disclose what side effects the underlying spend_analysis action may have, which is notable given the destructive hint.

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 with the action name, then provides a clear Args list with one line per parameter. Every sentence earns its place: the routing/scope sentence adds operational context, and the Args section clarifies input semantics. No filler or repetition.

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 presence of an output schema covers return-value expectations, and the description explains the action and its two parameters. It is missing two pragmatic pieces: when to use this tool instead of existing siblings, and any warning or elaboration about the action's potentially destructive behavior. For a tool marked destructiveHint=true, that gap prevents full self-sufficiency.

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?

Schema coverage is 0%, so the description carries the burden of explaining parameters. It does add meaning beyond the bare schema: message is a 'Free-text objective' and inputs is an 'Optional JSON string of structured inputs.' It doesn't detail the expected JSON shape or valid input keys, but it provides enough semantic framing for an agent to start an invocation.

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?

The description opens with a specific verb and resource: 'Run the commerce domain agent action `spend_analysis`.' This clearly states that the tool executes a named commerce-domain action and is not just a generic query or CRUD tool. It does not explicitly differentiate itself from similar siblings like procurement_spend_analysis or commerce_margin_analysis, so it stops short of 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?

The description gives no guidance on when to choose this tool over alternatives such as procurement_spend_analysis, company_spend, or commerce_margin_analysis. It mentions routing, JWT, tenant, and company scope, which is context rather than usage instruction. An agent would have to infer usage purely from the tool name and the first sentence.

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

Deploy Server

Other Tools