Skip to main content
Glama
refined-element

Ask Refined Element MCP Server

Official

Get a premium (L402-paid) playbook

get_paid_playbook

Retrieve a premium playbook by slug via L402. First call returns a Lightning invoice and macaroon; after paying, call again with macaroon and preimage to get full content.

Instructions

Retrieve one premium item from the Ask Refined Element pack by slug. Premium items are L402-gated (typically 100 sats); discover them and their slugs with search_refined_element_knowledge — they are marked [PREMIUM]. Call this tool FIRST with only the slug: the endpoint answers HTTP 402 Payment Required with a Lightning invoice and a macaroon, which this tool returns as structured payment instructions. Pay the invoice (the free Lightning Enable MCP server can do this automatically — github.com/refined-element/lightning-enable-mcp), then call this tool AGAIN with the same slug plus the macaroon and the payment preimage to receive the full content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesPremium item slug, as discovered via search_refined_element_knowledge (premium matches are marked [PREMIUM] and include their slug).
macaroonNoThe macaroon from the 402 challenge. Omit on the first call.
preimageNoThe Lightning payment preimage proving you settled the invoice. Omit on the first call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the L402 paywall, the typical cost (100 sats), the HTTP 402 challenge and its invoice/macaroon response, and the mandatory two-call handshake with the preimage as proof of payment. This is exactly the behavioral context an agent needs before invoking a payment-gated tool.

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 one-line purpose, then the gating mechanism, then the procedural flow, so each part is findable. It is slightly dense in the middle (payment-server URL and 402 detail) but every sentence carries actionable information.

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 payment-gated, stateless-looking tool with no output schema, the description covers gating, cost, failure mode (402 with challenge payload), and the complete retry path. An agent has everything required to invoke it correctly on both passes.

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 three parameters are already documented, giving a baseline of 3. The description adds real meaning beyond the schema by explaining that macaroon and preimage are omitted on the first call and required on the second, clarifying the two-phase contract rather than just restating field names.

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 ('Retrieve one premium item from the Ask Refined Element pack by slug') and names the sibling that discovers slugs, so it is immediately distinguishable from search_refined_element_knowledge and the free get_article/get_checklist siblings.

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 explicit sequencing ('Call this tool FIRST with only the slug', then 'call this tool AGAIN with the same slug plus the macaroon and the payment preimage'), names the discovery alternative, and even points at the recommended Lightning payment helper.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.