Skip to main content
Glama

Buy one chapter

buy_chapter

SIDE EFFECT, MAY SPEND MONEY: buys one paid chapter of a Mike Fluff Press book, on its own, for whoever the token speaks for (OAuth scope "mikefluff:purchase"; without a token, HTTP 401 and the client signs the person in). The chapter is then theirs to read on the site and whole through get_chapter_preview. Paid the same ways as buy_book: from the person's INITE wallet where they allowed this shop, else one link for them (wallet or card/PIX); an agent signed in as itself pays the returned x402Url from its own INITE wallet (pay tool at billing.inite.ai/mcp/wallet). Owning the book already includes every chapter. Get chapter ids from list_books. Only call when the user has asked to buy this chapter.

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": {
      "book": "<book>",
      "chapter": "<chapter>",
      "locale": "<locale>"
    },
    "name": "buy_chapter"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookYesBook slug from list_books.
emailNoOptional: the user's email, for the receipt when the account has none.
localeYesLanguage of the chapter and currency of the price.
chapterYesChapter id from list_books, e.g. "ch07".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / book / enum
      Previous value: -[
      -  "nobody-writes-code",
      -  "nobody-owns-money",
      -  "from-closures-to-autonomous-systems"
      -]New value: +[
      +  "nobody-writes-code",
      +  "nobody-owns-money",
      +  "from-closures-to-autonomous-systems",
      +  "beautiful-computer"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / book / enum
      Previous value: -[
      -  "nobody-writes-code",
      -  "nobody-owns-money"
      -]New value: +[
      +  "nobody-writes-code",
      +  "nobody-owns-money",
      +  "from-closures-to-autonomous-systems"
      +]
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false) by disclosing the money-spending side effect up front, the required OAuth scope 'mikefluff:purchase', and the 401-without-token behavior. It also documents the full payment decision tree: INITE wallet, fallback single link (wallet or card/PIX), and agent self-payment via the returned x402Url at billing.inite.ai/mcp/wallet.

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 highest-stakes fact ('SIDE EFFECT, MAY SPEND MONEY'), which is exactly the right ordering for a purchase tool. The remainder is dense and largely earned, though the payment sentence is a long clause stack that could be split for faster scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a non-idempotent, open-world purchase tool with no output schema, the description covers everything an agent needs before calling: cost, auth, error path, payment routing, and the ownership precondition. The only unmapped detail is the shape of the return payload, which is partially implied by the 'returned x402Url' reference.

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%, so book, chapter, locale, and email are already documented in the schema itself, including the list_books provenance and the locale-currency coupling. The description only restates 'Get chapter ids from list_books' and adds no syntax, constraint, or edge-case meaning beyond that, 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 ('buys one paid chapter of a Mike Fluff Press book') and immediately scopes it with 'on its own', which separates it from buy_book's whole-book purchase. The audience ('whoever the token speaks for') is also made explicit, so an agent can identify the operation 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 gate ('Only call when the user has asked to buy this chapter') plus a decisive exclusion ('Owning the book already includes every chapter'), which prevents a redundant purchase. It also routes to siblings for prerequisites ('Get chapter ids from list_books') and for post-purchase reading ('get_chapter_preview').

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