Skip to content

MCP And Plugins

Finance CLI is ready to be wrapped by an MCP server or plugin through its generated schema files. The schema is the contract; an adapter should not scrape prose docs.

FileUse
tools.jsonCanonical command catalog for tools, agents, and MCP adapters.
schemas/finance-cli-tools.schema.jsonJSON Schema for validating tools.json.
openapi.jsonOpenAPI-style adapter contract for HTTP/tool runtimes.
llms.txtCompact LLM entry point.
llms-full.txtFull agent context with playbooks and command routing.
finance-cli-skills.zipSkill package for agents that support local skills.

Every command in tools.json includes:

FieldMeaning
nameCLI command name, such as filings.statement.
descriptionHuman and agent-readable command summary.
argsStructured parameter map with type, required flag, default, enum, aliases, and description when available.
input_schemaJSON Schema object for adapter validation.
output_schemaJSON Schema for the standard result envelope and command payload.
side_effectsOne of pure_calculation, local_file_read, network_read_only, or local_or_network_read.
auth_requiredWhether the command uses public providers, optional environment credentials, or no auth.
rate_limit_notesProvider-specific rate-limit notes when useful.
citation_fieldsFields an agent should preserve in citations.
agentuse_when, avoid_when, and next_steps routing hints.

An MCP/plugin adapter should:

  1. Validate input against input_schema.
  2. Execute the matching local CLI command.
  3. Return the raw JSON envelope unchanged.
  4. Preserve warnings.
  5. Surface ok=false errors directly.
  6. Apply side-effect labels before deciding whether to call a command automatically.
LabelMeaning
pure_calculationNo network and no filesystem read.
local_file_readReads a caller-supplied local file.
network_read_onlyReads public/provider data and does not mutate external state.
local_or_network_readReads either a local path or URL supplied by the caller.

Finance CLI commands are designed as read-only research tools. They do not place trades, send emails, mutate provider state, or write API keys.

The local skill does not replace this schema contract. It points agents back to tools.json and the installed finance CLI.