DRILLS.ai · Chapter 09

MCP: three read-only tools

Worked on October 25, 2026 · 3 min read

DRILLS.ai also exposes three tools over MCPModel Context Protocol: a standard for exposing tools and data sources to any agent. An MCP tool is discovered by its name, description and schema.See in the glossary →, so an external client can search postings and compute a score on evidence already qualified. These tools read; they do not act.

The concept

An MCP server is neither a database nor an AgentA program that uses a language model to decide what to do (search, call a tool, answer, refuse), in a loop, with stopping rules.See in the glossary →. It exposes tools. What a tool can reach is decided in code, before the first connection.

The diagram

The DRILLS.ai MCP surfaceExternal MCP clientif linked/mcp/Streamable HTTP · statelessallowed hosts · body ≤ 100,000 bytessearch_jobslistget_jobone postingscore_documented_matchevidence scoreJob-board adaptersGreenhouse · AshbyScore rulessharedOUT OF REACH✕ browser dossier ✕ paid model call✕ sending an application
Three read-only tools. They reuse the adapters and the score rules, with no access to the candidate or the model.
Tool Input → output Limit
search_jobs Location, number of results → public list Filter by words and place, no ranking by CV
get_job ID from the list → full posting Does not read an arbitrary URL
score_documented_match Profile, posting, requirements already qualified, scope, ConsentThe person's explicit agreement before their data goes to a service. Without it, the request is rejected before any call.See in the glossary → → score Checks the evidence is present; does not redo the analysis

The server uses stateless Streamable HTTPMCP's HTTP transport: the client sends its requests to a single address, here /mcp/.See in the glossary →, read-only Tool annotationHints declared with an MCP tool for the client: read-only, non-destructive, idempotent.See in the glossary →, a list of allowed hosts and a request body capped at 100,000 bytes. The annotation also declares IdempotenceRunning an action again doesn't change the result: a return already started isn't started twice, an existing resource is reused.See in the glossary →: running the tool again changes nothing. The server is mounted only if DRILLS_ENABLE_MCP=true.

From the repository (code written with the help of ChatGPT and Codex):

READ = ToolAnnotations(readOnlyHint=True, destructiveHint=False, idempotentHint=True, openWorldHint=True)

@mcp.tool(annotations=READ, structured_output=True)
async def get_job(job_id: str) -> dict[str, Any]:
    """Read one posting by its ID returned by search_jobs. Cannot fetch arbitrary URLs."""
    if len(job_id)>200: raise ValueError('Invalid job ID')
    ...

The DocstringThe text between triple quotes under a def; an agent framework or an MCP server turns it into the tool description the model reads.See in the glossary → is what the client reads: it says what the tool does, and what it does not. The server instructions also ask to treat postings and texts as untrusted data, never to follow an instruction found inside them, and to ask permission before sending a CV to the scoring tool.

What stays out of reach

The server reaches neither accounts nor Browser storagesessionStorage keeps data for the life of the tab; localStorage keeps it between visits. Both stay in that browser, on that device.See in the glossary →. It triggers no paid model call and does not apply. Giving an agent the power to apply was ruled out: reusing the tools, yes; acting outside on the candidate’s behalf, no.

The existence of /mcp/ does not prove a ChatGPT client was connected, or that user authentication exists. A connection is validated by initialisation, tool discovery, then a real call from the chosen client. The historical get_interview_rubric function is still in the module, but it is not registered as a public tool.

What I keep

  • A tool reads like a contract: its name, its types, its docstring, its limits.
  • Read-only by default. An action that commits is justified by a real, documented use.
  • An endpoint that exists is not a client that works.

The Python mechanisms

The defense question

Does MCP make the analysis true?

No. MCP exposes tools. The quality of the requirements and the reading of the evidence still need evaluating, with or without MCP.

Is an MCP endpoint a database or an agent?

Neither. It is a door to declared tools. Here, three read-only tools, with no access to the candidate’s dossier.