Skip to main content
Glama

Sergio by Serviche

Add a Toolshed item

install_toolshed_item
Idempotent

Adds one Toolshed item to this business as its own copy, as Add in Automations > Toolshed does. A shared flow or a Sergio starter lands as a draft (off), with Sergio's autonomy dropped so a person sets who sends; a Scanner is adopted on, watching for you; a handbook job is written into this business's handbook. versionId is the item's id from the Toolshed listing (GET /api/marketplace/browse): a shared version's uuid, or a Sergio item's sergio:. update: true moves an already-added Scanner to the item's current version. Adding an item already added returns the existing copy (alreadyInstalled). Nothing is sent. Pass the same idempotency_key when retrying.

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": {
      "versionId": "<versionId>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "install_toolshed_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
updateNo
versionIdYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, idempotent=true, destructive=false), it discloses concrete post-conditions: drafts land off, Sergio autonomy is dropped for human review, Scanners are adopted on, handbook jobs are written into this business's handbook. It also states nothing is sent and that retries should reuse the same idempotency_key, which is exactly the safety context an agent needs before a write.

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 action and the UI analogue, and every sentence carries real information. The item-kind sentence is long and dense, packing three outcomes with semicolons, which costs some readability but not content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter write tool with no output schema and modest schema descriptions, the definition covers inputs, per-type side effects, dedupe behavior (alreadyInstalled), and retry semantics. An agent has enough to call this correctly and predict the result without further clarification.

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 only 33%, but the description compensates for the two undocumented parameters: versionId is explained as coming from the Toolshed listing (GET /api/marketplace/browse), either a shared version uuid or a Sergio 'sergio:<key>', and 'update' is defined behaviorally. The idempotency_key guidance mostly restates the schema description, so it adds little new there.

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 ('Adds one Toolshed item to this business as its own copy') and anchors it to the product UI ('as Add in Automations > Toolshed does'). It then enumerates the distinct outcomes per item kind (shared flow/Sergio starter, Scanner, handbook job), so an agent knows exactly what operation it is invoking.

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

Usage Guidelines4/5

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

Gives clear context for use and an explicit alternative path: 'update: true moves an already-added Scanner to the item's current version', plus the note that re-adding returns the existing copy (alreadyInstalled). It does not name a distinct sibling tool to use instead, but it does state when to pass update versus plain add, which is the only real fork here.

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