AI-written answer about one company
ask_companyAnswer 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
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | Knowledge 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. | |
| company | Yes | Company 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. | |
| question | Yes | The question about this company. Plain English, 3 to 300 characters, no links. Example: What was revenue and gross margin last fiscal year? |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | { 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 } | |
| meta | No | Request metadata: request_id, as_of, company resolution, coverage, pipeline_version, licence, terms, proof_base. | |
| error | No | Present only on isError results: the API error code and message plus remedy hints. |