Skip to main content
Glama

factanker

Query curated templates

query_template
Read-onlyIdempotent

Reported figures and registry facts for US companies, banks, nonprofits and federal spending, taken from the official filings and registers themselves. A result with n=0 means the registry holds no record for the request. Curated query path for questions about revenue, net income, EBITDA, total assets, SEC filing metrics, fiscal-year financials, bank call-report metrics, nonprofit finances (IRS 990), federal contract/grant dependency, peer comparisons or percentiles for US organizations. Pick a template and pass parameters — no SQL. Key templates: org_profile (cik|lei|ein|rssd), search_org (name), company_financials (cik+metric, SEC EDGAR), bank_metrics (rssd|fdic_cert+metric, FFIEC), nonprofit_financials (ein+metric), gov_dependency, mastr_region (German renewables by state/district/municipality: capacity, age, units older than 20 years, decommissioning, pipeline). list_templates and every error name the allowed metric values. Returns an envelope: result + executed_query + n + scope + not_claimed — cite fact_url values in answers.

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": {
      "template": "<template>"
    },
    "name": "query_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNoTemplate parameters, e.g. {"cik":"320193","metric":"revenue","year_from":2023}
templateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / template / enum
      Previous value: -[
      -  "org_profile",
      -  "search_org",
      -  "company_financials",
      -  "bank_metrics",
      -  "nonprofit_financials",
      -  "nonprofit_profile",
      -  "org_changes",
      -  "peer_companies",
      -  "company_financials_eu",
      -  "peer_percentiles",
      -  "metric_for_tickers",
      -  "sector_summary",
      -  "gov_top_recipients",
      -  "gov_dependency",
      -  "peer_ebitda",
      -  "peer_ebitda_margin_percentiles",
      -  "peer_working_capital",
      -  "peer_wc_percentiles",
      -  "bank_percentiles",
      -  "bank_ranking"
      -]New value: +[
      +  "bank_metrics",
      +  "bank_percentiles",
      +  "bank_ranking",
      +  "company_financials",
      +  "company_financials_eu",
      +  "germany_renewables_weekly",
      +  "gov_dependency",
      +  "gov_top_recipients",
      +  "mastr_region",
      +  "metric_for_tickers",
      +  "nonprofit_financials",
      +  "nonprofit_profile",
      +  "org_changes",
      +  "org_profile",
      +  "peer_companies",
      +  "peer_ebitda",
      +  "peer_ebitda_margin_percentiles",
      +  "peer_growth",
      +  "peer_growth_percentiles",
      +  "peer_percentiles",
      +  "peer_ratio_percentiles",
      +  "peer_ratios",
      +  "peer_wc_percentiles",
      +  "peer_working_capital",
      +  "search_org",
      +  "sector_summary"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / params / description
      Previous value: -"Template-Parameter, z.B. {\"cik\":\"320193\",\"metric\":\"revenue\",\"year_from\":2023}"New value: +"Template parameters, e.g. {\"cik\":\"320193\",\"metric\":\"revenue\",\"year_from\":2023}"
  3. Changed1 schema field changed
    • changedInput schema / properties / template / enum
      Previous value: -[
      -  "org_profile",
      -  "search_org",
      -  "company_financials",
      -  "bank_metrics",
      -  "nonprofit_financials",
      -  "nonprofit_profile",
      -  "org_changes",
      -  "peer_companies",
      -  "company_financials_eu"
      -]New value: +[
      +  "org_profile",
      +  "search_org",
      +  "company_financials",
      +  "bank_metrics",
      +  "nonprofit_financials",
      +  "nonprofit_profile",
      +  "org_changes",
      +  "peer_companies",
      +  "company_financials_eu",
      +  "peer_percentiles",
      +  "metric_for_tickers",
      +  "sector_summary",
      +  "gov_top_recipients",
      +  "gov_dependency",
      +  "peer_ebitda",
      +  "peer_ebitda_margin_percentiles",
      +  "peer_working_capital",
      +  "peer_wc_percentiles",
      +  "bank_percentiles",
      +  "bank_ranking"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / template / enum
      Previous value: -[
      -  "org_profile",
      -  "search_org",
      -  "company_financials",
      -  "bank_metrics",
      -  "nonprofit_financials",
      -  "nonprofit_profile",
      -  "org_changes",
      -  "peer_companies",
      -  "company_financials_eu",
      -  "peer_percentiles",
      -  "metric_for_tickers",
      -  "sector_summary",
      -  "gov_top_recipients",
      -  "gov_dependency",
      -  "peer_ebitda",
      -  "peer_ebitda_margin_percentiles",
      -  "peer_working_capital",
      -  "peer_wc_percentiles",
      -  "bank_percentiles",
      -  "bank_ranking"
      -]New value: +[
      +  "org_profile",
      +  "search_org",
      +  "company_financials",
      +  "bank_metrics",
      +  "nonprofit_financials",
      +  "nonprofit_profile",
      +  "org_changes",
      +  "peer_companies",
      +  "company_financials_eu"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / template / enum
      Previous value: -[
      -  "org_profile",
      -  "search_org",
      -  "company_financials",
      -  "bank_metrics",
      -  "nonprofit_financials",
      -  "nonprofit_profile",
      -  "org_changes",
      -  "peer_companies",
      -  "company_financials_eu",
      -  "peer_percentiles",
      -  "metric_for_tickers",
      -  "sector_summary",
      -  "gov_top_recipients",
      -  "gov_dependency"
      -]New value: +[
      +  "org_profile",
      +  "search_org",
      +  "company_financials",
      +  "bank_metrics",
      +  "nonprofit_financials",
      +  "nonprofit_profile",
      +  "org_changes",
      +  "peer_companies",
      +  "company_financials_eu",
      +  "peer_percentiles",
      +  "metric_for_tickers",
      +  "sector_summary",
      +  "gov_top_recipients",
      +  "gov_dependency",
      +  "peer_ebitda",
      +  "peer_ebitda_margin_percentiles",
      +  "peer_working_capital",
      +  "peer_wc_percentiles",
      +  "bank_percentiles",
      +  "bank_ranking"
      +]
  6. Changed1 schema field changed
    • changedInput schema / properties / template / enum
      Previous value: -[
      -  "org_profile",
      -  "search_org",
      -  "company_financials",
      -  "bank_metrics",
      -  "nonprofit_financials",
      -  "nonprofit_profile",
      -  "org_changes",
      -  "peer_companies",
      -  "company_financials_eu",
      -  "peer_percentiles",
      -  "metric_for_tickers",
      -  "sector_summary"
      -]New value: +[
      +  "org_profile",
      +  "search_org",
      +  "company_financials",
      +  "bank_metrics",
      +  "nonprofit_financials",
      +  "nonprofit_profile",
      +  "org_changes",
      +  "peer_companies",
      +  "company_financials_eu",
      +  "peer_percentiles",
      +  "metric_for_tickers",
      +  "sector_summary",
      +  "gov_top_recipients",
      +  "gov_dependency"
      +]
  7. Changed1 schema field changed
    • changedInput schema / properties / template / enum
      Previous value: -[
      -  "org_profile",
      -  "search_org",
      -  "company_financials",
      -  "bank_metrics",
      -  "nonprofit_financials",
      -  "nonprofit_profile",
      -  "org_changes",
      -  "peer_companies",
      -  "company_financials_eu"
      -]New value: +[
      +  "org_profile",
      +  "search_org",
      +  "company_financials",
      +  "bank_metrics",
      +  "nonprofit_financials",
      +  "nonprofit_profile",
      +  "org_changes",
      +  "peer_companies",
      +  "company_financials_eu",
      +  "peer_percentiles",
      +  "metric_for_tickers",
      +  "sector_summary"
      +]
  8. Changed1 schema field changed
    • changedInput schema / properties / template / enum
      Previous value: -[
      -  "org_profile",
      -  "search_org",
      -  "company_financials",
      -  "bank_metrics",
      -  "nonprofit_financials",
      -  "nonprofit_profile",
      -  "org_changes",
      -  "peer_companies"
      -]New value: +[
      +  "org_profile",
      +  "search_org",
      +  "company_financials",
      +  "bank_metrics",
      +  "nonprofit_financials",
      +  "nonprofit_profile",
      +  "org_changes",
      +  "peer_companies",
      +  "company_financials_eu"
      +]
  9. Changed1 schema field changed
    • changedInput schema / properties / template / enum
      Previous value: -[
      -  "org_profile",
      -  "search_org",
      -  "company_financials",
      -  "bank_metrics",
      -  "nonprofit_financials",
      -  "nonprofit_profile",
      -  "org_changes"
      -]New value: +[
      +  "org_profile",
      +  "search_org",
      +  "company_financials",
      +  "bank_metrics",
      +  "nonprofit_financials",
      +  "nonprofit_profile",
      +  "org_changes",
      +  "peer_companies"
      +]
  10. Changed1 schema field changed
    • changedInput schema / properties / template / enum
      Previous value: -[
      -  "org_profile",
      -  "search_org",
      -  "company_financials",
      -  "bank_metrics",
      -  "nonprofit_financials",
      -  "nonprofit_profile"
      -]New value: +[
      +  "org_profile",
      +  "search_org",
      +  "company_financials",
      +  "bank_metrics",
      +  "nonprofit_financials",
      +  "nonprofit_profile",
      +  "org_changes"
      +]
  11. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive, so the safety profile is covered; the description goes well beyond by explaining that n=0 means the registry genuinely holds no record and by disclosing the returned envelope (result + executed_query + n + scope + not_claimed) plus the instruction to cite fact_url values. It also notes that list_templates and every error surface the allowed metric values, which is useful recovery behavior.

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?

Front-loaded with what the data is and when it applies, then template/param mappings, then the return envelope — a sensible ordering with little filler. The topic enumeration (revenue through percentiles) is long but each item selects a template, so it earns its space; the mastr_region aside about German renewables is slightly jarring against the US-centric framing.

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?

For a 26-template dispatch tool with no output schema and half-covered parameters, the definition supplies scope, key template/param pairings, the n=0 convention, and the response envelope. An agent can invoke it correctly in common cases, with the remaining gap (per-template parameter requirements for the unnamed templates) mitigated by the pointer to list_templates and error messages.

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 50% and the params object is free-form with a single example, so the description must carry weight — it does, by mapping key templates to their required parameters (org_profile: cik|lei|ein|rssd; company_financials: cik+metric; bank_metrics: rssd|fdic_cert+metric; nonprofit_financials: ein+metric; mastr_region: state/district/municipality). The gap is that only about seven of the 26 enumerated templates get this treatment, leaving the rest undocumented in both schema and description.

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 names the resource precisely (reported figures and registry facts from official filings for US companies, banks, nonprofits and federal spending) and the mechanism (curated template query, no SQL). It distinguishes itself from sibling tools by pointing to list_templates as the discovery path and describing a fixed envelope result, so an agent can tell what this does without opening the schema.

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 enumerates the question types that select this tool (revenue, net income, EBITDA, SEC filing metrics, bank call-report metrics, IRS 990 nonprofit finances, gov contract/grant dependency, peer percentiles/rankings) and instructs the agent to pick a template rather than write SQL. It stops short of explicit when-not guidance, e.g. directing raw-fact lookups to get_facts or search_facts.

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