Skip to main content
Glama

Submit the page mapping

prepress_submit_mapping
Destructive

Apply the proposed mapping to the order — the print suppliers' record.

Call only after the customer's approval has been recorded: answer the APPROVE_MAPPING confirmation with prepress_confirm first, unless the mapping card already did (the item is approved). This is the step that commits. Requires a PROPOSED mapping, approved.

Returns a job_id. This waits for page management to finish, so the result usually reports configured: true and no follow-up is needed. If it reports configured: false the mapping is applied and still processing — call prepress_check_configuration later, and never re-submit.

Job errors: OrderNotMappableError (the order has moved past awaiting artwork — mapping is no longer possible), MappingNotApprovedError (the customer hasn't approved yet — answer the APPROVE_MAPPING confirmation with prepress_confirm), MappingNotProposedError, MappingRejectedError (a file changed since the proposal — re-run prepress_map_pages), or UnrepresentableMappingError, or ItemHasDesignError (the item holds an attached design, and the design is what prints).

A submitted mapping is what prints for the item, so the design and candidates made for it are released: the next item can be designed.

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": {
      "session_id": "<session_id>",
      "item_id": "<item_id>"
    },
    "name": "prepress_submit_mapping"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYes
order_idNo
session_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / order_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / order_id / default
      Added value: +null
    • removedInput schema / properties / order_id / type
      Removed value: -"string"
    • changedInput schema / required
      Previous value: -[
      -  "session_id",
      -  "order_id",
      -  "item_id"
      -]New value: +[
      +  "session_id",
      +  "item_id"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds the substantive consequences: the mapping is what prints, it blocks until page management finishes, and the design plus its candidates are released so the next item can be designed. The enumerated job errors (OrderNotMappableError, MappingNotApprovedError, MappingRejectedError, etc.) each carry a remediation, far beyond what annotations convey.

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?

Front-loaded with the commit action and its precondition, then structured into returns, errors, and side effects. The error paragraph is dense and could be tightened, but every item listed maps to a distinct recovery action rather than being 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?

Despite having an output schema, the description usefully explains the job_id return and how to interpret configured: true versus false, plus the full error taxonomy and the release of the design afterward. The one real gap is that none of the three input parameters are described, which leaves an agent guessing about order_id's null default.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters (item_id, order_id, session_id), and the description never mentions any of them or explains the role of the optional order_id versus item_id. The only implicit signal is repeated reference to 'the item,' which does not compensate for the coverage gap on a mutation tool with a nullable parameter whose default behavior is undocumented.

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 specific verb and resource — 'Apply the proposed mapping to the order' — and immediately clarifies that the order is the print supplier's record. It is clearly distinguishable from prepress_map_pages (propose) and prepress_view_mapping (read), because the description frames this as 'the step that commits.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit precondition chain: only after approval is recorded, answer APPROVE_MAPPING with prepress_confirm first unless the item is already 'approved,' and a PROPOSED mapping is required. It also names the alternative path for the partial-success case ('call prepress_check_configuration later, and never re-submit'), which is exactly the routing guidance an agent needs.

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