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.
Schema Files
Section titled “Schema Files”| File | Use |
|---|---|
tools.json | Canonical command catalog for tools, agents, and MCP adapters. |
schemas/finance-cli-tools.schema.json | JSON Schema for validating tools.json. |
openapi.json | OpenAPI-style adapter contract for HTTP/tool runtimes. |
llms.txt | Compact LLM entry point. |
llms-full.txt | Full agent context with playbooks and command routing. |
finance-cli-skills.zip | Skill package for agents that support local skills. |
Tool Contract
Section titled “Tool Contract”Every command in tools.json includes:
| Field | Meaning |
|---|---|
name | CLI command name, such as filings.statement. |
description | Human and agent-readable command summary. |
args | Structured parameter map with type, required flag, default, enum, aliases, and description when available. |
input_schema | JSON Schema object for adapter validation. |
output_schema | JSON Schema for the standard result envelope and command payload. |
side_effects | One of pure_calculation, local_file_read, network_read_only, or local_or_network_read. |
auth_required | Whether the command uses public providers, optional environment credentials, or no auth. |
rate_limit_notes | Provider-specific rate-limit notes when useful. |
citation_fields | Fields an agent should preserve in citations. |
agent | use_when, avoid_when, and next_steps routing hints. |
Adapter Behavior
Section titled “Adapter Behavior”An MCP/plugin adapter should:
- Validate input against
input_schema. - Execute the matching local CLI command.
- Return the raw JSON envelope unchanged.
- Preserve
warnings. - Surface
ok=falseerrors directly. - Apply side-effect labels before deciding whether to call a command automatically.
Side-Effect Labels
Section titled “Side-Effect Labels”| Label | Meaning |
|---|---|
pure_calculation | No network and no filesystem read. |
local_file_read | Reads a caller-supplied local file. |
network_read_only | Reads public/provider data and does not mutate external state. |
local_or_network_read | Reads 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.