Skip to main content
Glama

Publish text as a link

share_text

Publish text at a public URL and get the link back. Each call publishes a new link, so calling it again makes a second one. Accepts up to 2MB of content, measured in UTF-8 bytes. A filename ending in .html or .htm produces a page that renders live in the browser at its own nudgehost.site address. A .csv or .json file opens in NudgeHost's table or JSON viewer. A .md or .markdown file shows as formatted text, with headings, lists, tables, task lists and links, a Source view, a Copy source button and a raw text address; HTML inside it shows as typed and images are not loaded. Any other filename, including .txt, produces a page that shows the text as plain text, with a Copy text button and a raw text address. The link is public: anyone who has it can open the file without signing in.

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": {
      "filename": "<filename>",
      "content": "<content>"
    },
    "name": "share_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesThe text to publish, exactly as it should be stored. For an .html filename this is the complete HTML document. May be empty.
filenameYesThe name to give the file, including an extension. End it in .html or .htm to publish a web page, or .md to show Markdown as formatted text. Any other extension, apart from .csv and .json, shows the text as plain text. Up to 200 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / filename / description
      Previous value: -"The name to give the file, including an extension. End it in .html or .htm to publish a web page. Any other extension, apart from .csv and .json, shows the text as plain text. Up to 200 characters."New value: +"The name to give the file, including an extension. End it in .html or .htm to publish a web page, or .md to show Markdown as formatted text. Any other extension, apart from .csv and .json, shows the text as plain text. Up to 200 characters."
  2. Changed1 schema field changed
    • changedInput schema / properties / filename / description
      Previous value: -"The name to give the file, including an extension. End it in .html or .htm to publish a page the recipient can read in the browser. Up to 200 characters."New value: +"The name to give the file, including an extension. End it in .html or .htm to publish a web page. Any other extension, apart from .csv and .json, shows the text as plain text. Up to 200 characters."
  3. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Goes well past annotations: it discloses a 2MB cap measured in UTF-8 bytes, that every call creates a new persistent artifact rather than updating one, how each extension changes rendering, and that the result is world-readable without sign-in. That is exactly the side-effect and exposure context an agent needs for a non-readOnly, openWorld mutation whose annotations only say the basics.

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

Conciseness3/5

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

Front-loaded and organized by extension, but the Markdown sentence drifts into UI minutiae ('a Source view, a Copy source button and a raw text address') that does not help an agent decide or call. Trimming those viewer details would tighten an otherwise well-ordered definition.

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 no output schema, the description does say a link comes back, but it never names the response field or mentions expiry, revocation, or how the created link relates to list_links. Given only two fully documented parameters and a clear size limit, it is nearly complete for the calling decision.

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 100%, so the baseline is 3; the description earns more by explaining the consequence of each filename extension (live page vs table/JSON viewer vs rendered Markdown vs plain text) and by restating the UTF-8 byte cap that governs the content parameter. It adds a couple of extensions (.htm, .markdown) not spelled out in the schema, though it omits the 200-character filename limit that the schema carries.

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?

Opens with a concrete verb and resource: 'Publish text at a public URL and get the link back', which states both the action and the return value. It never names a sibling (complete_upload, create_upload_url, list_links), so the agent must infer that this is the non-upload, direct-text path, but the action itself is unambiguous.

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 line 'Each call publishes a new link, so calling it again makes a second one' is useful guidance against redundant calls, and the public-link warning implies a sensitivity check before use. There is no explicit statement of when to prefer this over create_upload_url or complete_upload for larger or chunked content.

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.