Skip to main content
Glama

Put a sum beside public spending

compare_public_spending
Read-onlyIdempotent

Express a GBP amount as a share and duration of a stored 2025-26 public budget, with comparisons against other budgets. The NHS comparison uses England's DHSC day-to-day budget as a proxy. These are illustrative averages, not live spending rates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesAmount in GBP.
budgetNoBudget to compare against; response also includes other budgets.nhs

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
urlYes
cardYes
dataYes
slugYes
textYes
verbYes
yearYes
labelYes
scopeYes
shareYesFraction of the selected annual budget, not a percentage.
amountYes
annualYes
othersYes
perDayYes
sourceYes
caveatsYes
secondsYes
sourcesYes
currencyYes
headlineYes
shareUrlYes
perSecondYes
assumptionsYes
verificationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "amount": {
      +      "type": "number"
      +    },
      +    "annual": {
      +      "type": "number"
      +    },
      +    "assumptions": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "card": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "caveats": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "currency": {
      +      "const": "GBP",
      +      "type": "string"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "built": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "fiscalYear": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "fiscalYear",
      +        "built"
      +      ],
      +      "type": "object"
      +    },
      +    "headline": {
      +      "type": "string"
      +    },
      +    "key": {
      +      "enum": [
      +        "everything",
      +        "nhs",
      +        "pensions",
      +        "welfare",
      +        "interest",
      +        "education",
      +        "defence",
      +        "borrowing",
      +        "taxes",
      +        "monarchy"
      +      ],
      +      "type": "string"
      +    },
      +    "label": {
      +      "type": "string"
      +    },
      +    "others": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "annual": {
      +            "type": "number"
      +          },
      +          "key": {
      +            "enum": [
      +              "everything",
      +              "nhs",
      +              "pensions",
      +              "welfare",
      +              "interest",
      +              "education",
      +              "defence",
      +              "borrowing",
      +              "taxes",
      +              "monarchy"
      +            ],
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          },
      +          "scope": {
      +            "type": "string"
      +          },
      +          "seconds": {
      +            "type": "number"
      +          },
      +          "source": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "label": {
      +                "type": "string"
      +              },
      +              "url": {
      +                "format": "uri",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "label",
      +              "url"
      +            ],
      +            "type": "object"
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "verification": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "datasetReviewFlag": {
      +                "type": "boolean"
      +              },
      +              "status": {
      +                "const": "bundled_figure_not_reverified",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "status",
      +              "datasetReviewFlag"
      +            ],
      +            "type": "object"
      +          },
      +          "year": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "key",
      +          "label",
      +          "annual",
      +          "year",
      +          "seconds",
      +          "text",
      +          "scope",
      +          "source",
      +          "verification"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "perDay": {
      +      "type": "number"
      +    },
      +    "perSecond": {
      +      "type": "number"
      +    },
      +    "scope": {
      +      "type": "string"
      +    },
      +    "seconds": {
      +      "type": "number"
      +    },
      +    "share": {
      +      "description": "Fraction of the selected annual budget, not a percentage.",
      +      "type": "number"
      +    },
      +    "shareUrl": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "slug": {
      +      "type": "string"
      +    },
      +    "source": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "label": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "format": "uri",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "label",
      +        "url"
      +      ],
      +      "type": "object"
      +    },
      +    "sources": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "label": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "format": "uri",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "label",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "text": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "verb": {
      +      "type": "string"
      +    },
      +    "verification": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "datasetReviewFlag": {
      +          "type": "boolean"
      +        },
      +        "status": {
      +          "const": "bundled_figure_not_reverified",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "datasetReviewFlag"
      +      ],
      +      "type": "object"
      +    },
      +    "year": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "currency",
      +    "amount",
      +    "headline",
      +    "sources",
      +    "assumptions",
      +    "caveats",
      +    "url",
      +    "card",
      +    "shareUrl",
      +    "key",
      +    "label",
      +    "annual",
      +    "year",
      +    "seconds",
      +    "text",
      +    "scope",
      +    "source",
      +    "verification",
      +    "slug",
      +    "verb",
      +    "perSecond",
      +    "perDay",
      +    "share",
      +    "others",
      +    "data"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed world). The description adds real behavioral context beyond them: the NHS comparison is a DHSC day-to-day proxy, and the figures are 'illustrative averages, not live spending rates' — an important caveat that prevents the agent from presenting output as current data.

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

Conciseness5/5

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

Three short sentences, purpose front-loaded, with the proxy caveat and the illustrative-averages warning each earning their place by preventing misinterpretation of the output.

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?

An output schema exists, so return structure need not be described. The description covers what the tool computes, the NHS proxy semantics, and the static/illustrative nature of the data. Only explicit routing versus the sibling tools is missing.

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 baseline is 3, but the description adds meaning beyond the schema: it explains what the 'nhs' enum value actually represents (England's DHSC day-to-day budget used as a proxy) and that budgets are a stored 2025-26 set, clarifying the default rather than just repeating it.

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: 'Express a GBP amount as a share and duration of a stored 2025-26 public budget, with comparisons against other budgets.' This is clearly distinct from the sibling adjust_for_inflation and calculate_take_home tools, which perform conversions rather than budget comparisons.

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 description ('comparisons against other budgets'), but there is no explicit when-to-use/when-not-to-use guidance and no reference to the sibling tools. An agent must infer that this is for illustrative budget-comparison framing rather than live or precise spending figures.

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