PostCartsIdTaxes
Calculate tax lines and amounts for a shopping cart in Medusa's e-commerce platform.
Instructions
Calculate the cart's tax lines and amounts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| fields | No |
Calculate tax lines and amounts for a shopping cart in Medusa's e-commerce platform.
Calculate the cart's tax lines and amounts.
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| fields | No |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool calculates taxes, implying a read-only or computational operation, but doesn't clarify if it modifies data, requires authentication, has rate limits, or what the output looks like (e.g., tax amounts or lines). This leaves significant gaps in understanding the tool's behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence: 'Calculate the cart's tax lines and amounts.' It is front-loaded with the core purpose and wastes no words, making it highly efficient and easy to parse. Every part of the sentence contributes directly to understanding the tool's function.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (2 parameters, no annotations, no output schema), the description is incomplete. It explains the purpose but lacks details on usage, parameters, behavior, and output. For a tax calculation tool, this leaves critical gaps, such as how results are returned or what inputs are needed, making it inadequate for reliable agent use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 2 parameters (id, fields) with 0% description coverage, meaning they are undocumented in the schema. The description adds no information about these parameters, such as what 'id' refers to (e.g., cart ID) or what 'fields' controls (e.g., specific tax details to return). It fails to compensate for the low schema coverage, leaving parameters ambiguous.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Calculate the cart's tax lines and amounts.' It specifies the verb ('calculate') and resource ('cart's tax lines and amounts'), making it easy to understand what the tool does. However, it doesn't differentiate from sibling tools like 'PostCartsIdComplete' or 'PostCartsIdShippingMethods', which also operate on carts but for different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a cart ID), exclusions, or related tools like 'GetCartsId' for retrieving cart details. Without this context, an agent might struggle to apply it correctly in workflows.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SGFGOV/medusa-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server