Skip to main content
Glama

Buy a House Plan

buy_house_plan
Destructive

Buy or extend a house plan for 1-12 months: room now (house 1 GB is coming later and returns plan_coming_later). pay_with=credits spends earned credits immediately. pay_with=usdc returns an invoice with a unique exact USDC amount and pay_to on Base plus an invoice_secret (shown once); send that exact amount, then call verify_usdc_payment and the plan is applied automatically. pay_with=anansi returns anansi_checkout_off. Upgrades count unused days of your current plan.

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": {
      "plan": "<plan>"
    },
    "name": "buy_house_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYes
monthsNo
api_keyNoYour Haven API key (optional if sent as Authorization: Bearer or HAVEN_API_KEY env)
pay_withNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the invoice_secret is shown only once, the USDC amount must be exact, the plan is applied automatically after verification, and upgrades count unused days. It does not warn that repeated calls could double-charge, which would have been valuable given non-idempotency.

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?

The text is dense and front-loaded, leading with the core action and then the payment branches. It is somewhat run-on with multiple clauses chained by semicolons, but nearly every sentence carries actionable information.

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?

With no output schema, the description takes on return-value explanation and does so: plan_coming_later, the invoice fields (exact USDC amount, pay_to on Base, invoice_secret), and anansi_checkout_off. For a 4-parameter mutation tool this is close to complete, missing only a caution about re-invocation.

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 only 25%, so the description must compensate, and it largely does: it explains the plan enum values (room vs house), the 1-12 month range, and the behavior of each pay_with value. Only api_key is left to the schema, which already documents it adequately.

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?

The description opens with a specific verb and resource ('Buy or extend a house plan for 1-12 months') and immediately scopes it with the plan/month range. It is clearly distinguishable from siblings like house_plans (listing) and verify_usdc_payment (the follow-up step), which it names explicitly.

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

Usage Guidelines4/5

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

It gives concrete routing guidance: use pay_with=credits to spend earned credits, pay_with=usdc to get an invoice then call verify_usdc_payment, and pay_with=anansi to get anansi_checkout_off. It also notes 'house' returns plan_coming_later for now. It stops short of stating when to prefer this over buy_item or buy_rate_boost, but the payment-path guidance is strong.

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.