Skip to main content
Glama

updatePackage

Destructive

Change fields of a package; omitted fields keep their current values. Grants are replaced as a whole: pass every grant the package should keep. Returns the updated package. Get packageId from getPackages. Never invent UUIDs; only use values from prior tool responses.

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": {
      "packageId": "<packageId>",
      "package": "<package>"
    },
    "name": "updatePackage"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesPackage fields to update.
packageIdYesThe id of the package.

Output Schema

NameRequiredDescriptionDefault
packageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, so the description's job is to say what is destroyed — and it does: grants are replaced wholesale, so every retained grant must be re-sent. It also confirms the return value (the updated package) and the ID-provenance constraint. It stops short of stating permission requirements or what happens to package-linked records when grants change.

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?

Four short sentences, front-loaded with the update semantics and immediately followed by the most dangerous behavior (grant replacement). Every sentence carries actionable information; no filler or restatement of the tool name.

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 destructive two-parameter nested-object mutation with an output schema, the description covers the essentials an agent needs: partial-update semantics, the destructive grant replacement, ID provenance, and the return value. Return-value details are correctly left to the output schema rather than duplicated.

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; the description earns above that by explaining the semantics of omission ("omitted fields keep their current values") and the all-or-nothing behavior of the grants array, which the schema itself does not convey. It adds no guidance on price validation or the credits/dayPasses distinction, which remain schema-only.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Change fields of a package" gives a specific verb and resource, and the partial-update clause plus "Returns the updated package" makes clear this is a field-level mutation rather than a create/replace. It does not name createPackage/deletePackage/getPackage explicitly, so the sibling differentiation is implied by the verb rather than stated.

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?

It states the prerequisite for obtaining the id ("Get packageId from getPackages") and adds a hard guardrail ("Never invent UUIDs; only use values from prior tool responses"). It does not spell out when to prefer updatePackage over createPackage or deletePackage, but the partial-update framing covers the main usage decision.

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