Skip to main content
Glama
MCP RESTful API Server

MCP RESTful API Server

by mikdanjey

api_put

Send a PUT request to update a resource at a specified API endpoint, including optional JSON body and custom headers.

Instructions

Perform PUT request to the configured API endpoint with JSON body support

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": {
      "path": "<path>"
    },
    "name": "api_put"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoOptional JSON request body
pathYesAPI endpoint path (relative to base URL)
headersNoOptional custom headers as key-value pairs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry the behavioral burden. It says PUT and JSON body support but does not disclose idempotency, replacement semantics, authentication requirements, error behavior, or response format for a mutation request.

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?

The definition is a single front-loaded sentence with no wasted wording. It is concise and readable, though its brevity contributes to the missing usage and behavioral detail.

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

Completeness2/5

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

For a three-parameter HTTP mutation tool with no annotations and no output schema, the description leaves important context unstated, including request outcome, error handling, and how PUT differs from sibling methods. It is not complete enough to guide correct invocation beyond the schema.

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 description coverage is 100%, so path, body, and headers are already documented in the input schema. The description only adds 'JSON body support,' which is already conveyed by the body property, so it adds little parameter-level meaning.

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?

The description names a specific HTTP verb (PUT) and resource (the configured API endpoint), and the verb itself distinguishes it from sibling api_get/api_post/api_patch/api_delete. It is clear but does not explicitly contrast its purpose with those siblings.

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

Usage Guidelines2/5

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

It gives no when-to-use or when-not-to-use guidance, and does not mention choosing PUT over api_patch or api_post. The only cue is the HTTP method name, leaving selection largely to the caller's prior knowledge of HTTP semantics.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools