Skip to main content
Glama

cost of raising a child

cost_of_raising_a_child
Read-onlyIdempotent

What raising a child to 18 costs (US, UK, Canada, Australia, Ireland, Switzerland, New Zealand): everyday costs by age band, pre-school childcare, an optional housing share and inflation, less child benefit where the country pays it. Inputs left out use the country defaults from the calculator page. Use this when someone asks how much it costs to raise a child.

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

Input Schema

NameRequiredDescriptionDefault
levelNoSpending level (default average)
countryNoCountry (default us)
housingNoAdd a housing share per child (default true)
careTypeNoChildcare (default full)
childrenNoNumber of children (default 1)
careYearsNoYears of pre-school childcare from age 1
careAnnualNoFull-time childcare a year, before subsidy
inflationPctNoInflation, % a year
careSubsidyPctNoChildcare subsidy, %
includeBenefitsNoSubtract child benefit (default true)

Output Schema

NameRequiredDescriptionDefault
nextNoOptional paid follow-on (name, url, what) where it genuinely helps
noteNoWhen the figures were read, and that this is general information, not advice
pageYesThe calculator page to cite or link, https://decisionscalc.com/...
resultYesThe calculation (usually an object), same engine and figures as the calculator page
sourcesYesOfficial source URLs for the figures used

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "next": {
      +      "description": "Optional paid follow-on (name, url, what) where it genuinely helps",
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        },
      +        "what": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "note": {
      +      "description": "When the figures were read, and that this is general information, not advice",
      +      "type": "string"
      +    },
      +    "page": {
      +      "description": "The calculator page to cite or link, https://decisionscalc.com/...",
      +      "type": "string"
      +    },
      +    "result": {
      +      "description": "The calculation (usually an object), same engine and figures as the calculator page"
      +    },
      +    "sources": {
      +      "description": "Official source URLs for the figures used",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "result",
      +    "page",
      +    "sources"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile needs no restating. The description does add real context beyond them: which cost buckets are summed, that child benefit is subtracted only where the country pays it, and that missing inputs resolve to calculator-page defaults. It stops short of describing result shape, currency handling, or the projection horizon assumptions, so a 3 is fair.

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

Conciseness3/5

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

Two sentences with no filler, and the trigger sentence is correctly placed last. However the first sentence is a single dense 45-word run-on packing country list, cost components, housing option, inflation, and benefit netting into one breath, which hurts scanability for an agent parsing it quickly.

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 10 optional parameters, full schema descriptions, and an output schema handling return values, the description covers what an agent needs to call it correctly: scope, components, defaults, and trigger. Minor gaps remain around units/currency of inputs (e.g. careAnnual currency) and projection assumptions, but nothing blocking.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and every parameter already carries its own default documentation, so the schema does the heavy lifting. The description's contribution is the meta-rule that omitted inputs use country defaults from the calculator page, which meaningfully explains the four params lacking schema-level defaults (careYears, careAnnual, inflationPct, careSubsidyPct). That is a modest but real increment, not a re-statement.

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+resource (cost of raising a child to 18) and enumerates the cost components included: everyday costs by age band, pre-school childcare, optional housing share, inflation, and child benefit netting. It also names the seven supported countries, which cleanly separates it from siblings like aging_parent_care_cost or pet_cost_lifetime.

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?

A clear trigger is given: 'Use this when someone asks how much it costs to raise a child.' It also explains that omitted inputs fall back to country defaults, which tells the agent it can call with zero arguments. No explicit when-not or named alternative is provided, keeping this below a 5.

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.