Skip to main content
Glama

Save a trade corridor

exim__corridor__save

Saves an exporter-importer-HS code lane as a named corridor for reuse; optionally starred with a default currency and Incoterm.

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": {
      "exporterCountry": "<exporterCountry>",
      "importerCountry": "<importerCountry>",
      "name": "<name>"
    },
    "name": "exim__corridor__save"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCorridor name or id (kebab-case, e.g. fr-de-widgets). Discover via `corridor list`. Shorten the name to 120 characters or fewer, then retry.
starNoStar this corridor (surfaces as starter chip)
hsCodeNoHS code for this corridor (optional — anchor later via update)
baseVersionNoThe loaded version; if it changed, the save is refused with the current value.
defaultCurrencyNoISO 4217 currency (e.g. 'USD')
defaultIncotermNoDefault Incoterm (e.g. 'FOB', 'CIF')
exporterCountryYesSending country — accepts country name, ISO2, ISO3 (e.g. "Viet Nam", "VN", "VNM")
importerCountryYesReceiving country — accepts country name, ISO2, ISO3 (e.g. "Germany", "DE", "DEU")

Output Schema

NameRequiredDescriptionDefault
dataYes
statsNo
_debugNo
summaryYes
warningsNo
nextActionsYes
correlationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Corridor name or id (kebab-case, e.g. fr-de-widgets). Discover via `corridor list`."New value: +"Corridor name or id (kebab-case, e.g. fr-de-widgets). Discover via `corridor list`. Shorten the name to 120 characters or fewer, then retry."
    • changedInput schema / properties / name / maxLength
      Previous value: -8000New value: +120
  2. Changed3 schema fields changed
    • addedOutput schema / properties / data / properties / context / anyOf
      Added value: +[
      +  {
      +    "type": [
      +      "null",
      +      "boolean",
      +      "number",
      +      "string",
      +      "array",
      +      "object"
      +    ]
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "referenced": {
      +        "type": "boolean"
      +      },
      +      "rowCount": {
      +        "type": "integer"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "referenced",
      +      "rowCount",
      +      "url"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / data / properties / context / type
      Removed value: -[
      -  "null",
      -  "boolean",
      -  "number",
      -  "string",
      -  "array",
      -  "object"
      -]
    • changedOutput schema / properties / data / properties / items / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/$defs/value0"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/value0"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "exportUrl": {
      +              "type": "string"
      +            },
      +            "payloadBytes": {
      +              "type": "integer"
      +            },
      +            "rowCount": {
      +              "type": "integer"
      +            },
      +            "token": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "exportUrl",
      +            "payloadBytes",
      +            "rowCount",
      +            "token",
      +            "url"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed18 schema fields changed
    • removedInput schema / properties / --baseVersion
      Removed value: -{
      -  "description": "The loaded version; if it changed, the save is refused with the current value.",
      -  "type": "string"
      -}
    • removedInput schema / properties / --defaultCurrency
      Removed value: -{
      -  "description": "ISO 4217 currency (e.g. 'USD')",
      -  "type": "string"
      -}
    • removedInput schema / properties / --defaultIncoterm
      Removed value: -{
      -  "description": "Default Incoterm (e.g. 'FOB', 'CIF')",
      -  "type": "string"
      -}
    • removedInput schema / properties / --exporterCountry
      Removed value: -{
      -  "description": "Sending country — accepts country name, ISO2, ISO3 (e.g. \"Viet Nam\", \"VN\", \"VNM\")",
      -  "type": "string"
      -}
    • removedInput schema / properties / --hsCode
      Removed value: -{
      -  "description": "HS code for this corridor (optional — anchor later via update)",
      -  "type": "string"
      -}
    • removedInput schema / properties / --importerCountry
      Removed value: -{
      -  "description": "Receiving country — accepts country name, ISO2, ISO3 (e.g. \"Germany\", \"DE\", \"DEU\")",
      -  "type": "string"
      -}
    • removedInput schema / properties / --name
      Removed value: -{
      -  "description": "Corridor name or id (kebab-case, e.g. fr-de-widgets). Discover via `corridor list`.",
      -  "type": "string"
      -}
    • removedInput schema / properties / --star
      Removed value: -{
      -  "description": "Star this corridor (surfaces as starter chip)",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / baseVersion
      Added value: +{
      +  "description": "The loaded version; if it changed, the save is refused with the current value.",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / defaultCurrency
      Added value: +{
      +  "description": "ISO 4217 currency (e.g. 'USD')",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / defaultIncoterm
      Added value: +{
      +  "description": "Default Incoterm (e.g. 'FOB', 'CIF')",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / exporterCountry
      Added value: +{
      +  "description": "Sending country — accepts country name, ISO2, ISO3 (e.g. \"Viet Nam\", \"VN\", \"VNM\")",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / hsCode
      Added value: +{
      +  "description": "HS code for this corridor (optional — anchor later via update)",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / importerCountry
      Added value: +{
      +  "description": "Receiving country — accepts country name, ISO2, ISO3 (e.g. \"Germany\", \"DE\", \"DEU\")",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Corridor name or id (kebab-case, e.g. fr-de-widgets). Discover via `corridor list`.",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / star
      Added value: +{
      +  "description": "Star this corridor (surfaces as starter chip)",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "--exporterCountry",
      -  "--importerCountry",
      -  "--name"
      -]New value: +[
      +  "exporterCountry",
      +  "importerCountry",
      +  "name"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "value0": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "version": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name",
      +        "version"
      +      ],
      +      "type": "object"
      +    },
      +    "value1": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value2": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value3"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value3": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "command": {
      +          "type": "string"
      +        },
      +        "cost": {
      +          "type": "string"
      +        },
      +        "label": {
      +          "type": "string"
      +        },
      +        "rationale": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "command",
      +        "cost",
      +        "label",
      +        "rationale"
      +      ],
      +      "type": "object"
      +    },
      +    "value4": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": "number"
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value5": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value6"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value6": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    "value7": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "_debug": {
      +      "$ref": "#/$defs/value7"
      +    },
      +    "correlationId": {
      +      "type": "string"
      +    },
      +    "data": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "context": {
      +          "type": [
      +            "null",
      +            "boolean",
      +            "number",
      +            "string",
      +            "array",
      +            "object"
      +          ]
      +        },
      +        "cursor": {
      +          "type": "string"
      +        },
      +        "has_more": {
      +          "type": "boolean"
      +        },
      +        "items": {
      +          "anyOf": [
      +            {
      +              "items": {
      +                "$ref": "#/$defs/value0"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "context",
      +        "has_more",
      +        "items"
      +      ],
      +      "type": "object"
      +    },
      +    "nextActions": {
      +      "$ref": "#/$defs/value2"
      +    },
      +    "stats": {
      +      "$ref": "#/$defs/value4"
      +    },
      +    "summary": {
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "$ref": "#/$defs/value5"
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "nextActions",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already disclose that this is a non-read-only, non-idempotent, non-destructive write operation. The description adds that the corridor is saved for reuse and can be starred with default currency and Incoterm, but it does not mention conflict handling, duplicate behavior, or permission needs beyond what the schema already covers for baseVersion.

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 definition is a single compact sentence with the core action front-loaded and the optional details clearly marked. Every clause earns its place without repetition or filler.

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?

Given that the input schema has full field descriptions and an output schema exists, the description is largely complete for a save operation. The main remaining gap is guidance about when to use save versus updating an existing corridor or when baseVersion conflicts occur.

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 description coverage is 100%, so the baseline is 3, but the description adds conceptual meaning by defining the saved object as an exporter-importer-HS code lane and clarifying that star, default currency, and Incoterm are optional. It does not add parameter-level format details beyond the schema, but it does tie the main fields together meaningfully.

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?

The description uses a specific verb, resource, and scope: it saves an exporter-importer-HS code lane as a named corridor for reuse. An agent can distinguish this create/save action from the sibling corridor get/list operations without opening the schema.

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?

The phrase "for reuse" implies the intended usage, and the description notes optional starring and defaults, but it never states when to save versus update or list corridors. It provides only implied guidance and no explicit alternatives or exclusions.

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.