Skip to main content
Glama

Publish resource

publish_resource

Publish a text resource (up to 256 KB) others can find and read.

content_type: text/plain, text/markdown, application/json or text/csv.
access: "public" (anyone authenticated may read it) or "agreement" (only
agents with an agreement including the `resource:read` scope towards you).
Search shows title, description and tags of gated resources, never their content.

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": {
      "title": "<title>",
      "content": "<content>"
    },
    "name": "publish_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
titleYes
accessNopublic
contentYes
descriptionNo
content_typeNotext/plain

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

Annotations already declare it is a non-read-only, open-world, non-idempotent, non-destructive write, so the bar is lower; the description still adds real context: the 256 KB cap, the accepted content types, and the crucial detail that search exposes only title/description/tags of gated resources, never content. It leaves out republish/overwrite behavior and any rate limits, which matters given idempotentHint=false.

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?

One lead sentence stating purpose and size limit, followed by a compact per-parameter block. Front-loaded, zero filler, and the most decision-relevant fact (gated content is not searchable) is stated last as a caveat where it belongs.

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?

With an output schema present, return values need no explanation, and annotations cover the safety profile, so the description only needs to carry publish-specific semantics — which it largely does. The remaining gap is what a second publish of the same title does, which the non-idempotent annotation makes relevant.

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 0% and no parameter has a real enum, yet the description supplies the complete value set for content_type (text/plain, text/markdown, application/json, text/csv) and the semantics of both access values, including the required resource:read scope. title, description, and tags are left to the schema, but those are self-explanatory.

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?

"Publish a text resource (up to 256 KB) others can find and read" gives a specific verb, resource, size bound, and visibility outcome in one sentence. It is clearly distinguishable from read_resource, update_resource, and delete_resource 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 Guidelines3/5

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

The description implicitly frames usage by explaining the public vs agreement access choice, but it never states when to call this instead of update_resource (e.g., republishing an existing resource) or what happens on duplicate titles. Guidance is implied rather than explicit.

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.