Skip to content
RAGRAF

MCP tools reference

Every tool of the RAGRAF stdio server: how it maps to a facade operation, the "read-only / changes state" hints, required parameters and the differences from the CLI.

Updated: 2026-11-10

What the MCP server in RAGRAF is #

There are 94 tools. The server is a stdio process that your agent launches; no network is used and no port is opened. The tool name as the client sees it is ragraf_<operation>. The rule has meaningful exceptions, and they are listed below rather than hidden.

The readOnlyHint / destructiveHint hints come from the tool metadata (_TOOL_META in src/ragraf/mcp_server.py): the client shows them to a human before the call and may require confirmation. A hint is not a permission — it describes behaviour.

What a call looks like #

Tools are called as functions with named arguments; the server hands the parameters and their schemas to the client itself, so the hints in the interface never diverge from the code:

Text
ragraf_ensure(project="<project directory>")
ragraf_search(query="where the licence is issued", limit=5)
ragraf_callers(fqn="Site\\Support\\Locale::htmlLang")

Tool → operation #

ToolFacade operationHintRequired parameters

Tools without a facade operation #

There are 13 of them — each has its own job, and they are not "extra" names:

ToolWhat it is for

Operations without an MCP tool #

There are 6: calibrate, gate, shared_index_publish, shared_index_query, shared_index_status, task_set. The reason is the same in every case — these are actions of the contour administrator (building the check suite, publishing the shared index, labelling a task from the console) that a human performs with a CLI command. The agent deliberately cannot reach them: silently publishing the shared index or rebuilding the check suite from an agent session would be a change to the contour made without a human decision.

How MCP differs from the CLI #

PropertyCLIMCP
Who callsa human or a scriptan agent from a session
Transporta process, arguments, stdoutJSON-RPC over stdio
ResponseJSON on stdout (--json) or texta structured tool result
Corpus selection-p <config>ragraf_use_project / ragraf_ensure
Errorexit code and refusal texta refusal with kind and next_action

To check that the agent can see the tools, ask for ragraf_ensure, then ragraf_search. If the tools are absent, see the "Connecting an agent" section: most often the cause is the path to the interpreter, or the server is declared but the client has not been restarted.