Skip to main content
Glama

AI-written answer about one company

ask_company
Read-onlyIdempotent

Answer one short question about one company from its own filed values: statements, ratios, guidance, company metrics, segments and recent 8-K events. The answer in data.answer is written by an AI model and is labelled as such in data.label. The model sees only a numbered list of our facts. The server then checks that every number in the answer matches a fact it cites, and withholds the answer when one does not: data.answer is null, data.withheld_reason says why, and data.related_facts lists the facts to read instead. data.citations holds each cited fact as a value object with its proof and filing link, so quote those values, not the prose. It restates filed values; it does not compute, forecast or advise, and an answer with words of advice is withheld. It needs an API key or a signed-in connector: without one the answer is unauthorized with a sign-in link. Each key or connector has 20 answers a day (data.usage); a withheld answer does not count. Use it for a quick factual question such as last year's revenue or margin; use the statement, ratio or line item tools when you need the full table or an exact line.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "company": "ticker:AAPL",
      "question": "What was revenue and gross margin last fiscal year?"
    },
    "name": "ask_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoKnowledge date or timestamp (YYYY-MM-DD or RFC 3339). The answer is what FinancialMD knew at that instant: only facts whose known interval contains as_of. Omit for the current view.
companyYesCompany identifier: a FinancialMD id ("fmd_01H..."), an SEC CIK ("cik:320193"), or a ticker ("ticker:AAPL", optionally with the MIC "ticker:AAPL.XNAS"). A bare ticker like "AAPL" is accepted and sent as ticker:AAPL. An issuer on an EU or UK regulated market that does not file with the SEC has no CIK: pass its LEI ("lei:IOG4E947OATN0KJYSD45") or its fmd_ id.
questionYesThe question about this company. Plain English, 3 to 300 characters, no links. Example: What was revenue and gross margin last fiscal year?

Output Schema

NameRequiredDescriptionDefault
dataNo{ question, answer (string or null), citations: [{ fact, dataset, label, period, value (value object with proof) or null, text, source_url }], withheld_reason (null, no_facts, cannot_answer, no_citations, unknown_citation, unverified_numbers, invalid_model_output, advice, prompt_attack, harmful_content), unverified_numbers: [string], related_facts: [same shape as citations], facts_considered, generated_by "model", label, model, method_version, disclaimer, cached }
metaNoRequest metadata: request_id, as_of, company resolution, coverage, pipeline_version, licence, terms, proof_base.
errorNoPresent only on isError results: the API error code and message plus remedy hints.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / data / description
      Previous value: -"{ question, answer (string or null), citations: [{ fact, dataset, label, period, value (value object with proof) or null, text, source_url }], withheld_reason (null, no_facts, cannot_answer, no_citations, unknown_citation, unverified_numbers, invalid_model_output, advice), unverified_numbers: [string], related_facts: [same shape as citations], facts_considered, generated_by \"model\", label, model, method_version, disclaimer, cached }"New value: +"{ question, answer (string or null), citations: [{ fact, dataset, label, period, value (value object with proof) or null, text, source_url }], withheld_reason (null, no_facts, cannot_answer, no_citations, unknown_citation, unverified_numbers, invalid_model_output, advice, prompt_attack, harmful_content), unverified_numbers: [string], related_facts: [same shape as citations], facts_considered, generated_by \"model\", label, model, method_version, disclaimer, cached }"
  2. Changed2 schema fields changed
    • changedOutput schema / properties / data / description
      Previous value: -"{ question, answer (string or null), citations: [{ fact, dataset, label, period, value (value object with proof) or null, text, source_url }], withheld_reason (null, no_facts, cannot_answer, no_citations, unknown_citation, unverified_numbers, invalid_model_output), unverified_numbers: [string], related_facts: [same shape as citations], facts_considered, generated_by \"model\", label, model, method_version, disclaimer, cached }"New value: +"{ question, answer (string or null), citations: [{ fact, dataset, label, period, value (value object with proof) or null, text, source_url }], withheld_reason (null, no_facts, cannot_answer, no_citations, unknown_citation, unverified_numbers, invalid_model_output, advice), unverified_numbers: [string], related_facts: [same shape as citations], facts_considered, generated_by \"model\", label, model, method_version, disclaimer, cached }"
    • addedOutput schema / properties / data / properties / usage
      Added value: +{
      +  "properties": {
      +    "limit_today": {
      +      "type": "integer"
      +    },
      +    "used_today": {
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent annotations: it discloses the verification loop (every number is checked against a cited fact, mismatches are withheld), the withholding response shape (data.answer null, data.withheld_reason, data.related_facts), the no-compute/no-forecast/no-advice constraint, the auth requirement and the 20-answers-per-day quota on which withheld answers are not counted. That is meaningfully actionable behavior an agent could not infer from annotations alone.

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 the core purpose and the alternative routing, and each sentence carries operational content. It is dense and runs long, with the data.answer/data.citations behavior spread across several clauses that could be tightened, but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a single-question tool: purpose, alternatives, auth, quota, failure mode and citation semantics are all covered. An output schema exists, so the description's return-value detail is extra rather than required.

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 description coverage is 100%, with full documentation of company identifier forms, the as_of knowledge-date semantics and the question length bound, so the schema carries the burden. The description adds only the framing of one short question about one company and does not extend parameter meaning beyond the schema.

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: answer one short question about one company from its own filed values, enumerated as statements, ratios, guidance, metrics, segments and 8-K events. It explicitly contrasts itself with the statement, ratio and line item tools, so an agent can separate it from siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives a concrete use case (a quick factual question such as last year's revenue or margin) and an explicit exclusion routing the agent to statement, ratio or line item tools when a full table or exact line is needed. It also states the single-company, single-question scope, which bounds the call further.

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