Skip to main content
Glama

Teach a Hostlet site

add_document
Destructive

Adds a document (menu, price list, rules, FAQ) to a site's AI so it can answer visitors from it. The text becomes answerable by anyone who can open the site.

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": {
      "site": "<site>",
      "owner_key": "<owner_key>",
      "title": "<title>",
      "text": "<text>"
    },
    "name": "add_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesThe site's address name, e.g. "maple-street-bakery" for maple-street-bakery.hostlet.ai.
textYesThe full document text.
titleYesDocument title, e.g. "House Rules 2024".
owner_keyYesThe private owner key returned when the site was made. It proves the caller owns the site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / owner_key / description
      Added value: +"The private owner key returned when the site was made. It proves the caller owns the site."
    • addedInput schema / properties / site / description
      Added value: +"The site's address name, e.g. \"maple-street-bakery\" for maple-street-bakery.hostlet.ai."
    • changedInput schema / properties / text / description
      Previous value: -"The document text."New value: +"The full document text."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description adds real context beyond them: the text becomes answerable by anyone who can open the site, which tells the agent this is a public-disclosure write. It does not explain why the operation is destructive (e.g. whether it overwrites or removes prior knowledge) or what happens if the same document is added twice.

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?

Two tight sentences with zero filler; the action and subject lead, and the visibility consequence follows immediately. Nothing is repeated from the title or schema verbatim.

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?

All four required parameters are described, there is no output schema to explain, and the description covers purpose plus the key public-visibility risk. It falls short on duplicate-add behavior and any document size/format limits, which matter for a non-idempotent write tool.

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 coverage is 100%, so site, owner_key, title, and text are already documented, including the owner-key ownership proof. The description only echoes the text parameter via its document-type examples and adds no format, size, or batching guidance beyond the schema.

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?

States a specific verb and resource ("Adds a document ... to a site's AI") and backs it with concrete content examples (menu, price list, rules, FAQ) plus the downstream effect (the AI can answer visitors from it). It never names a sibling such as ask_site or change_site, so differentiation is inferred from the resource 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 Guidelines3/5

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

Usage is implied by the stated effect: call this when you want site visitors' questions answered from a document you already have. There is no explicit when-to-use vs when-not framing, and no pointer to alternatives like change_site for editing content already added or check_site for verification.

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