Skip to main content
Glama

Adjust pounds for UK inflation

adjust_for_inflation
Read-onlyIdempotent

Compare GBP purchasing power between years, with prices, wages and housing context. RPI covers 1948 onwards; CPI covers 1988 onwards. "now" means the latest stored observation, not a live price.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoEnding calendar year, or latest available data.now
fromYesStarting calendar year.
amountYesAmount in GBP; rounded to the nearest penny.
seriesNoInflation measure; RPI has the longer history.rpi

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYes
urlYes
buysYes
cardYes
dataYes
fromYes
wageYes
houseYes
amountYes
factorYes
resultYesEquivalent amount in GBP.
seriesYes
caveatsYes
sourcesYes
currencyYes
headlineYes
shareUrlYes
pctChangeYes
annualisedYes
assumptionsYes
seriesLabelYes
housePerWageYes
wageEquivalentYes

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"
      +    },
      +    "annualised": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "assumptions": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "buys": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "key": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          },
      +          "now": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "basis": {
      +                "type": "string"
      +              },
      +              "estimated": {
      +                "type": "boolean"
      +              },
      +              "period": {
      +                "type": "string"
      +              },
      +              "pricePence": {
      +                "type": "number"
      +              },
      +              "quantity": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "pricePence",
      +              "quantity",
      +              "estimated",
      +              "period",
      +              "basis"
      +            ],
      +            "type": "object"
      +          },
      +          "source": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "label": {
      +                "type": "string"
      +              },
      +              "url": {
      +                "format": "uri",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "label",
      +              "url"
      +            ],
      +            "type": "object"
      +          },
      +          "then": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "basis": {
      +                "type": "string"
      +              },
      +              "estimated": {
      +                "type": "boolean"
      +              },
      +              "period": {
      +                "type": "string"
      +              },
      +              "pricePence": {
      +                "type": "number"
      +              },
      +              "quantity": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "pricePence",
      +              "quantity",
      +              "estimated",
      +              "period",
      +              "basis"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "key",
      +          "label",
      +          "then",
      +          "now",
      +          "source"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "card": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "caveats": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "currency": {
      +      "const": "GBP",
      +      "type": "string"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "built": {
      +          "type": "string"
      +        },
      +        "house": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "properties": {
      +                "from": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": {},
      +                      "properties": {
      +                        "basis": {
      +                          "type": "string"
      +                        },
      +                        "period": {
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "period",
      +                        "basis",
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "latest": {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "month": {
      +                      "maximum": 9007199254740991,
      +                      "minimum": -9007199254740991,
      +                      "type": "integer"
      +                    },
      +                    "quarter": {
      +                      "maximum": 9007199254740991,
      +                      "minimum": -9007199254740991,
      +                      "type": "integer"
      +                    },
      +                    "value": {
      +                      "type": "number"
      +                    },
      +                    "year": {
      +                      "maximum": 9007199254740991,
      +                      "minimum": -9007199254740991,
      +                      "type": "integer"
      +                    }
      +                  },
      +                  "required": [
      +                    "year",
      +                    "value"
      +                  ],
      +                  "type": "object"
      +                },
      +                "to": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": {},
      +                      "properties": {
      +                        "basis": {
      +                          "type": "string"
      +                        },
      +                        "period": {
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "period",
      +                        "basis",
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "from",
      +                "to",
      +                "latest"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "index": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "from": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "basis": {
      +                      "type": "string"
      +                    },
      +                    "period": {
      +                      "type": "string"
      +                    },
      +                    "value": {
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "period",
      +                    "basis",
      +                    "value"
      +                  ],
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "latest": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "month": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "quarter": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                },
      +                "value": {
      +                  "type": "number"
      +                },
      +                "year": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": -9007199254740991,
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "year",
      +                "value"
      +              ],
      +              "type": "object"
      +            },
      +            "to": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "basis": {
      +                      "type": "string"
      +                    },
      +                    "period": {
      +                      "type": "string"
      +                    },
      +                    "value": {
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "period",
      +                    "basis",
      +                    "value"
      +                  ],
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "required": [
      +            "from",
      +            "to",
      +            "latest"
      +          ],
      +          "type": "object"
      +        },
      +        "wage": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "properties": {
      +                "from": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": {},
      +                      "properties": {
      +                        "basis": {
      +                          "type": "string"
      +                        },
      +                        "period": {
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "period",
      +                        "basis",
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "latest": {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "month": {
      +                      "maximum": 9007199254740991,
      +                      "minimum": -9007199254740991,
      +                      "type": "integer"
      +                    },
      +                    "quarter": {
      +                      "maximum": 9007199254740991,
      +                      "minimum": -9007199254740991,
      +                      "type": "integer"
      +                    },
      +                    "value": {
      +                      "type": "number"
      +                    },
      +                    "year": {
      +                      "maximum": 9007199254740991,
      +                      "minimum": -9007199254740991,
      +                      "type": "integer"
      +                    }
      +                  },
      +                  "required": [
      +                    "year",
      +                    "value"
      +                  ],
      +                  "type": "object"
      +                },
      +                "to": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": {},
      +                      "properties": {
      +                        "basis": {
      +                          "type": "string"
      +                        },
      +                        "period": {
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "period",
      +                        "basis",
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "from",
      +                "to",
      +                "latest"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "built",
      +        "index",
      +        "house",
      +        "wage"
      +      ],
      +      "type": "object"
      +    },
      +    "factor": {
      +      "type": "number"
      +    },
      +    "from": {
      +      "maximum": 2026,
      +      "minimum": 1948,
      +      "type": "integer"
      +    },
      +    "headline": {
      +      "type": "string"
      +    },
      +    "house": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "now": {
      +              "type": "number"
      +            },
      +            "ratio": {
      +              "type": "number"
      +            },
      +            "then": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "then",
      +            "now",
      +            "ratio"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "housePerWage": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "now": {
      +              "type": "number"
      +            },
      +            "then": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "then",
      +            "now"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "pctChange": {
      +      "type": "number"
      +    },
      +    "result": {
      +      "description": "Equivalent amount in GBP.",
      +      "type": "number"
      +    },
      +    "series": {
      +      "enum": [
      +        "rpi",
      +        "cpi"
      +      ],
      +      "type": "string"
      +    },
      +    "seriesLabel": {
      +      "type": "string"
      +    },
      +    "shareUrl": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "sources": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "label": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "format": "uri",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "label",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "to": {
      +      "anyOf": [
      +        {
      +          "maximum": 2026,
      +          "minimum": 1948,
      +          "type": "integer"
      +        },
      +        {
      +          "const": "now",
      +          "type": "string"
      +        }
      +      ]
      +    },
      +    "url": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "wage": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "now": {
      +              "type": "number"
      +            },
      +            "ratio": {
      +              "type": "number"
      +            },
      +            "then": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "then",
      +            "now",
      +            "ratio"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "wageEquivalent": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "currency",
      +    "amount",
      +    "headline",
      +    "sources",
      +    "assumptions",
      +    "caveats",
      +    "url",
      +    "card",
      +    "shareUrl",
      +    "from",
      +    "to",
      +    "series",
      +    "seriesLabel",
      +    "result",
      +    "factor",
      +    "pctChange",
      +    "annualised",
      +    "data",
      +    "buys",
      +    "house",
      +    "wage",
      +    "housePerWage",
      +    "wageEquivalent"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior. The description adds real behavioral context beyond them by defining that "now" is the latest stored observation rather than a live price, plus the historical coverage bounds of each series.

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, front-loaded with the core purpose, followed by the two constraints an agent most needs. No filler or redundancy.

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 values need not be explained. The description covers the tricky edge cases (series history bounds, "now" semantics), leaving only minor gaps such as rounding/precision behavior that the schema already handles.

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 the schema does not: the historical start dates constraining which years are valid per series and the precise semantics of the "now" enum value. This exceeds baseline without fully re-documenting every parameter.

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?

States a specific verb and resource (compare GBP purchasing power between years) and clarifies the metric basis (RPI/CPI). It does not explicitly distinguish itself from the siblings calculate_take_home and compare_public_spending, so it lands just short of full sibling differentiation.

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?

The series coverage note (RPI from 1948, CPI from 1988) implicitly guides which measure to pick for a given year range, which is genuine implied usage. But there is no explicit when-to-use/when-not guidance and no routing versus the sibling tools.

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