Repository navigation
feat(mcp): describe every tool input and when to use each tool - #402
Merged
Merged
Conversation
Every input of the 183 published MCP tools now carries a description, top level and nested: its format, the tool that returns an ID, revision, token or digest, and its default. Tool descriptions say when to use a tool instead of its neighbors, what a change fixes or locks, and how it is corrected. - The synthesized kind and target selectors of report and txn_clear explain each value from its branch description. - Wrapped doc comment lines publish as one line. - A connection whose grant lists fewer tools drops each routing sentence that names a tool it does not list; the first sentence of a description is always kept. - A catalog test fails when a published input has no description, with an explicit allow-list for self-evident inputs (empty today). - commands.md gains a guide to choosing between neighboring tools and to correcting each kind of journal; SKILL.md points to it. No tool, input type, schema shape or ledger behavior changed. Closes #400
Each wording below was checked against the code that consumes the input. - txn_clear status: uncleared deletes the entry's clearings, or only those carrying the statement, and is refused for clearings locked by a completed statement until its receipt is undone. - ledger_setup_begin name: 1 to 63 lowercase letters and underscores, starting and ending with a letter. - account_list from and to: ignored unless with_balances is true; from must be on or before to. - ledger_setup_book_update supersedes: profile.revision from ledger_setup_book_show. - security_create currency defaults to USD; summary stale holds use a strict 7-day default. - cash-forecast link_sources: join the scheduled_source_id and document_source_id of a possible_overlaps row. - payroll export_json: spell out the accepted Gusto totals form. - bookkeeping_policy_show and _set: the policy is an instruction for agents and is not applied to postings. - demo_ledger_create: correct the fallback account and currency default wording, and cover the demo host tool in the description test. Refs #400
demo_host_tool_provisions_only_the_host_managed_path failed on the macOS runner with reqwest Decode TimedOut. Creating the demo ledger is CPU-bound: an unoptimized test build takes about 1 s for the call alone and about 2 s with three tests in parallel, and the call ran past the shared client's 5-second limit on the slower 3-core runner. Running the whole mcp_http file unoptimized on 24 cores reproduces the failure locally. The demo calls now carry their own one-minute limit, which still fails a hung call. Every other request keeps the 5-second client limit. The same run passes three of three with the change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #400.
What changes
report.kindandtxn_clear.targetexplain each value from its branch description.references/commands.mdgains "Choose between neighboring tools" with a correction table per journal kind;SKILL.mdpoints to it.No tool, input type, schema shape or ledger behavior changed. Published schemas compared with descriptions stripped are identical for all 183 tools.
Tests
mcp::input_description_testsfails when a published input, at any depth, has no description.SELF_EVIDENTis the explicit allow-list and is empty.mcp::neighborscovers the per-connection trimming, the first-sentence rule and abbreviations that would split a sentence.mcp::catalogchecks that no published description contains a line break.-D warnings,cargo nextest run --workspace1698/1698.Known gaps, out of scope here
txn_post") on read-only connections. Only tool descriptions are trimmed per connection.