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.

Input Schema

TableJSON 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. Added

TDQS

A4.6/5.0
Behavior5/5

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

Far exceeds the annotations, which only say non-read-only/open-world/non-idempotent. The description discloses the OAuth scope 'mikefluff:purchase', the 401-without-token behavior and that the client signs the person in, the three distinct payment paths, the returned x402Url and the wallet pay tool, and the money-spending side effect. This is the operational detail an agent needs before committing a purchase.

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 most important fact ('SIDE EFFECT, MAY SPEND MONEY'), and the parentheticals are dense rather than padded. It runs long as a single paragraph though, and the payment-path detail could be split for scannability, which keeps it just short of a 5.

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 4-param mutation tool with no output schema and an open-world, money-spending operation, the description covers auth, entitlements, id sourcing, payment fallbacks, and the post-purchase reading path. Nothing material for a correct call 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 every property already carries a description with enums and examples, so the schema does the heavy lifting. The description only restates where ids come from ('Get chapter ids from list_books'), which duplicates the schema's own wording rather than adding format, range, or default semantics. 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?

Opens with an unambiguous verb+resource ('buys one paid chapter of a Mike Fluff Press book, on its own') and immediately separates it from buy_book by scoping to a single chapter. The phrase 'on its own' plus the sibling name buy_book lets an agent distinguish the two purchase tools without opening either 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?

Explicitly states the trigger ('Only call when the user has asked to buy this chapter') and a when-not condition ('Owning the book already includes every chapter'), plus where to get ids (list_books). It even routes reading to the sibling get_chapter_preview, which is exactly the alternative an agent might otherwise confuse with a purchase.

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