Skip to main content
Glama

WriteResource

Stores text as a transfer, script, or checkpoint resource for later retrieval by URI, enabling temporary data, JavaScript, or saved results to be reused.

Instructions

[read-only] Writes text to a resource for later retrieval by URI.

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": {
      "text": "<text>"
    },
    "name": "WriteResource"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoUse transfer for temporary data, script for JavaScript, or checkpoint for saved results.transfer
textYesThe text to store.
mime_typeNoThe MIME type of the text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv26.5.0

TDQS

C2.2/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full burden, yet it opens with a "[read-only]" claim on an operation it itself calls a write. It never says whether writes overwrite an existing URI, whether content persists across sessions, or what identifier is returned for later retrieval.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence, but the front-loaded "[read-only]" tag is not just wasted space — it actively misdirects the reader before the real verb appears. The retrieval hint is buried after the contradiction.

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 mutation tool with no annotations and no output schema, the description should explain the write/overwrite semantics and how the caller learns the resulting URI. It leaves both unaddressed and instead adds a contradictory safety marker.

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%, with `kind`, `text`, and `mime_type` all documented inline including enum meanings, so the schema does the heavy lifting. The description adds only the loose notion of later retrieval by URI and never explains how `kind` affects the resulting URI.

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

Purpose3/5

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

"Writes text to a resource" names a specific verb and resource, and "for later retrieval by URI" hints at the counterpart ReadResource tool. However, the leading "[read-only]" marker directly conflicts with the write verb, so the agent cannot be fully confident what the tool actually does.

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?

There is no statement of when to use this tool versus ReadResource or any alternative, and no note on prerequisites or persistence expectations. Only the schema's enum descriptions for `kind` provide any situational framing, and the description contributes nothing to that.

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