Skip to main content
Glama

Make a change through the SKU.io API

api_write
Destructive

Creates or changes data through a SKU.io REST API endpoint (POST, PUT or PATCH; reference: https://developer.sku.io). Only reviewed endpoints that create records or edit fields can be called; search_api marks them callable. Deletes, voids, cancels and sends are unavailable. Returns {status, data} or a detailed error such as validation_failed. Needs "Allow changes" for the endpoint's area. dry_run runs the change and rolls it back, returning the would-be result and what it would have triggered (emails, webhooks, jobs) without changing anything; idempotency_key makes a retry safe.

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": {
      "endpoint_id": "<endpoint_id>"
    },
    "name": "api_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe JSON request body.
dry_runNoWhen true, run the change and roll it back: returns the would-be result and what it would have triggered (emails, webhooks, jobs), and changes nothing.
endpoint_idYesAn endpoint_id from search_api, e.g. "post.inventory-adjustments".
path_paramsNoValues for the endpoint_id's {placeholders}, e.g. {"id": 12}.
idempotency_keyNoOptional, at most 128 characters. Repeating a call with the same key returns the first result instead of writing twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / dry_run / description
      Previous value: -"When true, validate the body against the endpoint and return what would be called, without changing anything."New value: +"When true, run the change and roll it back: returns the would-be result and what it would have triggered (emails, webhooks, jobs), and changes nothing."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations by naming the permission prerequisite ("Allow changes" for the endpoint's area), the return shape ({status, data} or a named error like validation_failed), and precisely what dry_run would trigger (emails, webhooks, jobs) while rolling back. The only shortfall is that it doesn't describe partial-failure behavior or what a rolled-back dry_run leaves behind on the endpoint side. The idempotency_key note is not a contradiction of idempotentHint=false, since safety only applies when the caller supplies a key.

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-loads the core verb and resource, then layers constraints, return shape, auth and the dry_run/idempotency safety pair in a tight sequence. Sentences are dense with clauses (the dry_run sentence carries three ideas), but nothing is redundant or padding.

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?

For a five-parameter, nested-body mutation tool with no output schema, the definition covers safety, auth, errors and the shape of the response, which is what an agent needs before calling. The remaining gap is that the free-form body object is left to an external developer URL rather than pointing at describe_endpoint, so the agent must infer how to populate it.

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%, so every parameter including body, path_params, dry_run and idempotency_key is already documented in the schema at the same level of detail the description offers. The description restates dry_run and idempotency semantics rather than adding new meaning, and says nothing about how body fields map to a given endpoint_id. Baseline 3 is correct when the schema does the heavy lifting.

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 set (POST, PUT, PATCH creates or edits) and the resource (SKU.io REST API endpoint), then draws hard boundaries: deletes, voids, cancels and sends are unavailable, and only endpoints that search_api marks callable can be used. An agent can distinguish this from api_read or the domain-specific create_* tools without opening any schema.

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 explicit when (only reviewed endpoints that create records or edit fields), when-not (deletes, voids, cancels, sends), and the routing step (find the endpoint_id via search_api). It also states the selection condition for dry_run versus a real write, so the agent knows how to preview safely before committing.

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.