Skip to main content
Glama

Write a page draft

write_page_draft
Destructive

Have Goppa write ONE page draft that answers a question where AI does not name your business. Called without approval it returns a preview that writes and uses nothing (the question, what is left this month and the worst-case cost) and an approval code; show it to the user and call again with that approval only after they agree. It never publishes the page. Needs write access.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "write_page_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoOne of your sites in Goppa, by domain (example.com). Required when the account has more than one site: without it, the answer lists the sites to choose from. With a single site it can be left out.
approvalNoLeave out the first time: you get a preview and an approval code. Send that code only after the user agrees.
languageNoOptional: en, es, pt, fr, de, it or nl.
questionNoThe question, as the site tracks it.
question_idNoOr its position in the last measurement.

Output Schema

NameRequiredDescriptionDefault
siteNo
as_ofNo
draftNo
errorNo
savedNo
stateNo
marketNo
periodNo
reasonNo
sampleNo
missingNo
partialNo
previewNo
startedNo
summaryNo
approvalNo
cost_usdNo
languageNo
questionNo
availableNo
cost_noteNo
data_statusNo
next_actionNo
evidence_idsNo
open_in_goppaNo
site_requiredNo
workspace_urlNo
never_publishesNo
approval_changedNo
sites_in_accountNo
untrusted_fieldsNo
worst_case_cost_usdNo
drafts_left_this_monthNo
drafts_included_per_monthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only flag destructiveHint/openWorldHint; the description adds the material behavior: the unapproved call writes and uses nothing, the preview discloses the question, remaining monthly allowance and worst-case cost, and write access is required. That is genuine disclosure about side effects, quota/cost exposure and prerequisites that the annotations do not carry.

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?

Front-loaded with the purpose and outcome, with no filler sentences. The long middle sentence packing preview contents, approval code and user-agreement into one clause chain is dense and slightly hard to parse, which keeps it from a 5.

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?

An output schema exists, so return values need not be spelled out, and the description still characterizes the preview payload. For a non-idempotent, quota-consuming write with a two-call approval flow, it is nearly complete; only the eventual draft's downstream lifecycle is left unstated.

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% and the schema already explains site selection, the optional approval code, language, and question vs question_id. The description reinforces the stateful approval parameter and the authored-question meaning, but adds little syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('write ONE page draft') plus the defining scope ('answers a question where AI does not name your business'), and implicitly separates itself from draft-listing and publishing siblings via 'It never publishes the page.' An agent can tell what this creates without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit two-step protocol: call without approval to get a preview and approval code, show it to the user, then call again with the code only after they agree. It also excludes a use case ('never publishes the page'), so the agent knows when to reach for send_draft_to_wordpress instead.

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