Skip to main content
Glama

Read the My ways plan

get_plan
Read-onlyIdempotent

Returns the plan of the organisation of the token: FREE, PAID, PAST_DUE, ENDING or ENDED; watched solutions billed in the current Stripe period, offer_version, invoice and payment proof. initial_basket, when present, gives the account's selected needs, exact upfront quote and activation status; its destination is for a human, not agent payment. prepaid-v1: €2 excl. VAT at the start of each monthly period covers the first 4 counted watches; initial basket extras: €0.50 each now; later extras: €0.50 excl. VAT at period end, never charged twice. Legacy rights keep the free unit and arrears until voluntary conversion. VORAN invoices through Stripe. Each watch identity counts once per period, even if closed, regardless of agent. Contract 0.7.0. Needs an organisation token (Authorization: Bearer hodds_...); without it the tool returns the error token_required.

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": "get_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
planYesTechnical state, not entitlement: check version, first payment and period. FREE right only for legacy. PAST_DUE: renewal retries. ENDING: existing prepaid watches to boundary, no new ones. ENDED: no free slot.
unitYes
sinceYesFirst day of the paid plan; null outside PAID, PAST_DUE and ENDING.
billingYesName and country of the Stripe customer, as entered at Stripe.
ends_onYesLast day of the plan when it is ENDING, or PAST_DUE with its stop asked; null otherwise.
paymentYesThe payment method lives at Stripe; no digit of it is stored or returned.
pendingNoDelivery on the next call: alerts that wait for this organisation. Absent when there is nothing to deliver. Only ack_alerts empties it.
summaryYesOne English/French sentence, per request or organisation language.
watchesYes
currencyYes
invoicesYes
invoiced_byYes
next_invoiceYesStripe period end and excl. VAT estimate: ended-period overage + next minimum for prepaid; null outside paid plan.
offer_versionYesServer-assigned; legacy rights retained until voluntary conversion. Clients cannot select legacy.
watches_totalYeswatches[] count: active and closed within 30 days.
initial_basketNoCurrent initial basket owned by the token's account, from the same snapshot as the human Plan. Absent without a current selection: expired PREPARED/EXPIRED and fully activated PAID history are excluded. OPEN remains unresolved until Stripe confirms payment or expiry, even after its local deadline. PAID with pending activation remains visible for recovery, never another charge. Selection and purchase consent are human-only actions.
minimum_coversYesPrepaid covers first 4 counted watches. Legacy counts paid watches only, excluding its free watch.
upfront_amountYesExcl. VAT, identical on human Plan/API/MCP: current unpaid initial_basket amount max(2.00,N×0.50); otherwise 2.00 before new prepaid with no selection, or 0.00 if already paid or legacy. A paid unresolved basket never requires a second initial payment. No entitlement or authorisation to pay from this quote.
watches_billedYesPrepaid identities counted once if active at start or activated in [start,end). Closed exactly at start excluded; later closure restores no unit. Legacy excludes free watch, retaining prior period rules.
monthly_minimumYes€2 excl. VAT per period, even empty: prepaid at start; legacy in arrears.
amount_due_estimateYesExcl. VAT at next boundary: prepaid overage_due_estimate + next_period_minimum (no repeated current minimum); legacy max(2.00, watches_billed × 0.50) in arrears. Null outside paid plan; unknown taxes excluded.
next_period_minimumYesActive prepaid: 2.00 excl. VAT for renewal, 0.00 if ending at boundary; null otherwise.
overage_due_estimateYesActive prepaid, excl. VAT at period end: first period max(0,M-max(4,N))×0.50; later max(0,M-4)×0.50. N=initial paid basket, M=counted identities. Null otherwise.
price_per_watch_monthYes
billing_reconciliationNoPresent when earlier prepaid usage has no confirmed delivery and can no longer be retried automatically. Unknown does not mean unbilled: reconcile the original identifiers with Stripe before any financial adjustment. This does not change the current subscription rights or duplicate its minimum.
initial_payment_confirmedYesApplicable full initial payment confirmed server-side for accepted amount, offer and identities. Not return/card/active flag/zero invoice. Check version and period.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / initial_basket / properties / items / items / properties / target
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "capability_ids": {
      +      "items": {
      +        "maxLength": 160,
      +        "type": "string"
      +      },
      +      "maxItems": 64,
      +      "type": "array",
      +      "uniqueItems": true
      +    },
      +    "kind": {
      +      "const": "product"
      +    },
      +    "solution_id": {
      +      "maxLength": 100,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "solution_id",
      +    "capability_ids"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / title
      Previous value: -"HODDS My ways plan (0.6.0)"New value: +"HODDS My ways plan (0.7.0)"
  2. Changed19 schema fields changed
    • changedOutput schema / $defs / watch / properties / plan / description
      Previous value: -"FREE: the free watch of the organisation, never billed."New value: +"FREE: legacy, never billed. PAID: counted watch. Prepaid has no free slot. Not organisation offer_version."
    • changedOutput schema / description
      Previous value: -"Answer of get_plan and GET /api/plan: the plan of the organisation of the token. 1 watched solution free, then €0.50 per watched solution per month, €2 monthly minimum (excl. VAT) while the plan is active, invoiced by VORAN, paid through Stripe. A paid watch is billed for a Stripe period when it is active at least one day of that period, whatever the number of agents that read it. No bank data: card, IBAN and address live at Stripe."New value: +"get_plan / GET /api/plan. prepaid-v1: €2 excl. VAT at period start covers 4 counted watches; €0.50 excl. VAT per additional watch at period end. Initial basket paid in full; already-paid units deducted, no repeat/credit at renewal. Legacy retained. Contract §10."
    • changedOutput schema / properties / amount_due_estimate / description
      Previous value: -"max(monthly_minimum, watches_billed × 0.50) for the current period; null outside a paid plan."New value: +"Excl. VAT at next boundary: prepaid overage_due_estimate + next_period_minimum (no repeated current minimum); legacy max(2.00, watches_billed × 0.50) in arrears. Null outside paid plan; unknown taxes excluded."
    • addedOutput schema / properties / billing_reconciliation
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Present when earlier prepaid usage has no confirmed delivery and can no longer be retried automatically. Unknown does not mean unbilled: reconcile the original identifiers with Stripe before any financial adjustment. This does not change the current subscription rights or duplicate its minimum.",
      +  "properties": {
      +    "periods": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "start": {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          "unconfirmed_units": {
      +            "minimum": 1,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "start",
      +          "unconfirmed_units"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 24,
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    "status": {
      +      "const": "required"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "periods"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / initial_basket
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Current initial basket owned by the token's account, from the same snapshot as the human Plan. Absent without a current selection: expired PREPARED/EXPIRED and fully activated PAID history are excluded. OPEN remains unresolved until Stripe confirms payment or expiry, even after its local deadline. PAID with pending activation remains visible for recovery, never another charge. Selection and purchase consent are human-only actions.",
      +  "properties": {
      +    "activation_error": {
      +      "description": "Recovery code when activation is pending; null otherwise. No second initial payment is needed.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "activation_pending": {
      +      "description": "True only after confirmed payment when selected identities remain unactivated.",
      +      "type": "boolean"
      +    },
      +    "count": {
      +      "maximum": 25,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "destination": {
      +      "description": "Same-origin summary for an authenticated human member; not a Checkout or agent payment endpoint.",
      +      "pattern": "^/my/plan\\?basket_id=wb_[a-f0-9]{32}$",
      +      "type": "string"
      +    },
      +    "id": {
      +      "pattern": "^wb_[a-f0-9]{32}$",
      +      "type": "string"
      +    },
      +    "items": {
      +      "description": "Exact selected identities and saved need content, excluding all unselected drafts. watch_id links an activated identity; null does not grant monitoring.",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "constraints": {
      +            "description": "Saved normalized constraints, including unrecognized constraints; no implied satisfaction.",
      +            "items": {
      +              "maxLength": 200,
      +              "type": "string"
      +            },
      +            "maxItems": 50,
      +            "type": "array"
      +          },
      +          "current_choice": {
      +            "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "current_choice_name": {
      +            "maxLength": 120,
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "draft_id": {
      +            "pattern": "^wd_[a-f0-9]{32}$",
      +            "type": "string"
      +          },
      +          "level": {
      +            "enum": [
      +              "NEED",
      +              "CATEGORY"
      +            ]
      +          },
      +          "need": {
      +            "description": "Complete saved need; null for CATEGORY.",
      +            "maxLength": 2000,
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "process": {
      +            "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$",
      +            "type": "string"
      +          },
      +          "watch_id": {
      +            "pattern": "^w_[a-z2-7]{20}$",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "draft_id",
      +          "level",
      +          "process",
      +          "need",
      +          "constraints",
      +          "current_choice",
      +          "current_choice_name",
      +          "watch_id"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 25,
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    "status": {
      +      "description": "PREPARED: editable selection awaiting human consent. OPEN: immutable checkout selection, payment unconfirmed. PAID: full initial payment verified server-side; check activation_pending separately.",
      +      "enum": [
      +        "PREPARED",
      +        "OPEN",
      +        "PAID"
      +      ]
      +    },
      +    "upfront_amount": {
      +      "description": "Original snapshot amount excluding VAT in the Plan currency: max(2.00,count×0.50). Retained after payment as its accepted amount; top-level upfront_amount becomes 0.00. Tax is unknown until Stripe calculates it, not zero.",
      +      "pattern": "^(?:[2-9]|[1-9][0-9]+)\\.(?:00|50)$",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "status",
      +    "count",
      +    "upfront_amount",
      +    "activation_pending",
      +    "activation_error",
      +    "destination",
      +    "items"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / initial_payment_confirmed
      Added value: +{
      +  "description": "Applicable full initial payment confirmed server-side for accepted amount, offer and identities. Not return/card/active flag/zero invoice. Check version and period.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / minimum_covers / description
      Previous value: -"Watched solutions covered by the monthly minimum; from the 5th on, €0.50 each."New value: +"Prepaid covers first 4 counted watches. Legacy counts paid watches only, excluding its free watch."
    • changedOutput schema / properties / monthly_minimum / description
      Previous value: -"S-79: amount excl. VAT due for each Stripe period while the plan is active."New value: +"€2 excl. VAT per period, even empty: prepaid at start; legacy in arrears."
    • changedOutput schema / properties / next_invoice / description
      Previous value: -"End of the current Stripe period and amount_due_estimate; null outside a paid plan."New value: +"Stripe period end and excl. VAT estimate: ended-period overage + next minimum for prepaid; null outside paid plan."
    • addedOutput schema / properties / next_period_minimum
      Added value: +{
      +  "description": "Active prepaid: 2.00 excl. VAT for renewal, 0.00 if ending at boundary; null otherwise.",
      +  "enum": [
      +    "0.00",
      +    "2.00",
      +    null
      +  ]
      +}
    • addedOutput schema / properties / offer_version
      Added value: +{
      +  "description": "Server-assigned; legacy rights retained until voluntary conversion. Clients cannot select legacy.",
      +  "enum": [
      +    "legacy",
      +    "prepaid-v1"
      +  ]
      +}
    • addedOutput schema / properties / overage_due_estimate
      Added value: +{
      +  "description": "Active prepaid, excl. VAT at period end: first period max(0,M-max(4,N))×0.50; later max(0,M-4)×0.50. N=initial paid basket, M=counted identities. Null otherwise.",
      +  "pattern": "^[0-9]+\\.[0-9]{2}$",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / plan / description
      Previous value: -"FREE: one active watch. PAID: watches beyond the free one. PAST_DUE: the last payment failed, watches kept. ENDING: stops at the end of the Stripe period (ends_on). ENDED: stopped; the paid watches were CLOSED."New value: +"Technical state, not entitlement: check version, first payment and period. FREE right only for legacy. PAST_DUE: renewal retries. ENDING: existing prepaid watches to boundary, no new ones. ENDED: no free slot."
    • changedOutput schema / properties / summary / description
      Previous value: -"One sentence in English, or in French when the request was in French (or in the language of the organisation)."New value: +"One English/French sentence, per request or organisation language."
    • addedOutput schema / properties / upfront_amount
      Added value: +{
      +  "description": "Excl. VAT, identical on human Plan/API/MCP: current unpaid initial_basket amount max(2.00,N×0.50); otherwise 2.00 before new prepaid with no selection, or 0.00 if already paid or legacy. A paid unresolved basket never requires a second initial payment. No entitlement or authorisation to pay from this quote.",
      +  "pattern": "^(?:0\\.00|(?:[2-9]|[1-9][0-9]+)\\.(?:00|50))$",
      +  "type": "string"
      +}
    • changedOutput schema / properties / watches_billed / description
      Previous value: -"Paid watches billed in the current Stripe period (active at least one day of it)."New value: +"Prepaid identities counted once if active at start or activated in [start,end). Closed exactly at start excluded; later closure restores no unit. Legacy excludes free watch, retaining prior period rules."
    • changedOutput schema / properties / watches_total / description
      Previous value: -"Watches listed in watches[]: the active ones and those closed in the last 30 days."New value: +"watches[] count: active and closed within 30 days."
    • changedOutput schema / required
      Previous value: -[
      -  "summary",
      -  "plan",
      -  "since",
      -  "ends_on",
      -  "unit",
      -  "price_per_watch_month",
      -  "monthly_minimum",
      -  "minimum_covers",
      -  "amount_due_estimate",
      -  "currency",
      -  "watches_billed",
      -  "watches_total",
      -  "next_invoice",
      -  "payment",
      -  "billing",
      -  "invoiced_by",
      -  "watches",
      -  "invoices"
      -]New value: +[
      +  "summary",
      +  "plan",
      +  "since",
      +  "ends_on",
      +  "unit",
      +  "price_per_watch_month",
      +  "monthly_minimum",
      +  "minimum_covers",
      +  "amount_due_estimate",
      +  "currency",
      +  "watches_billed",
      +  "watches_total",
      +  "next_invoice",
      +  "payment",
      +  "billing",
      +  "invoiced_by",
      +  "watches",
      +  "invoices",
      +  "offer_version",
      +  "initial_payment_confirmed",
      +  "upfront_amount",
      +  "overage_due_estimate",
      +  "next_period_minimum"
      +]
    • changedOutput schema / title
      Previous value: -"HODDS My ways plan (0.3.2)"New value: +"HODDS My ways plan (0.6.0)"
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely new behavioral facts: a Bearer organisation token is mandatory and the failure mode is the token_required error. The warning that initial_basket is 'for a human, not agent payment' is a real guardrail against an agent taking an unintended financial action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is front-loaded and useful, but the body devolves into semicolon-joined pricing minutiae (€2 excl. VAT per period, €0.50 extras now vs at period end, legacy arrears) that an agent does not need in order to call a read-only endpoint. The signal that matters, the token requirement, is buried second-to-last instead of being hoisted up.

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 an output schema present, return values need not be explained, and the description still covers statuses, auth, the error case and a payment guardrail. The one real omission is differentiating this from get_creator_plan, which the annotation and schema fields cannot supply.

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?

The schema has zero parameters, so there are no semantics to disambiguate and the baseline of 4 applies. The description correctly spends no words on parameters and instead covers what the returned plan means.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause gives a specific verb and resource (returns the plan) and scopes it to the organisation bound to the token, then enumerates the exact plan states it can take. It does not distinguish itself from the sibling get_creator_plan, so an agent has to infer the boundary between the two.

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

Usage Guidelines3/5

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

Usage is implied by the resource (read the current org plan) and the auth note tells the agent what is required to call it successfully. But there is no statement of when to prefer this over get_creator_plan or cancel_plan, which are the closest siblings and the most likely source of mis-selection.

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