Slopfluencer

Notes › AI › Agents

MCP, CLIs and code as agent tools

An agent acts through tools, the programs its harness lets the model call, each with a name and a written description. How those tools should reach the model is still unsettled. MCP, the Model Context Protocol, offers them as structured calls on a separate server that any agent can use. A competing camp gives the agent a shell and ordinary command-line programs, or lets it write code against a library, and treats a long list of structured tools as dead weight.

The choice has a cost on every turn. Each tool the harness lists is text the model reads, and every description and every result costs tokens. Skills, plugins and the rest of the add-on layer around tools are covered in Skills, plugins and MCP, and the harness as a whole in Agent harnesses.

Tool descriptions

Tool descriptions carry more weight than they look. Hsieh et al. found in 2023 that giving a model only the documentation for each tool, with no worked examples, matched few-shot prompting on existing benchmarks. On a new set with hundreds of tool APIs, documentation alone did significantly better than examples without documentation.[1] The same idea reached websites in 2024 with the /llms.txt proposal, a file that tells models where a site keeps content written for them.[2] Tool output costs tokens as well. In May 2026 the maintainer of Hermes Agent, Nous Research's open-source agent, reported a change that cut input tokens during file reads by 14 percent on average.[3]

MCP servers

MCP defines how an agent discovers and calls tools on a separate server, so one server works with any agent that speaks the protocol. The protocol's own repository keeps a few reference servers and points to a registry for the rest.[4]

CLIs and code instead of tool calls

A competing view holds that a command-line program is a better tool format than a structured tool call. One widely shared claim, attributed to a former backend engineer at the agent company Manus, is that text CLIs win because Unix commands appear in training data going back to the 1970s.[6] Small CLIs that wrap MCP servers for coding agents appeared for that reason, so the agent can list, search and call MCP tools from its shell.[5]

The same argument applies to browsers. One team reported better speed when its agent wrote code for Playwright, a browser automation library, directly instead of choosing among ten or more click, drag and navigate tools.[7] Hugging Face's smolagents library builds its main agent type on the same idea. Its CodeAgent writes each action as code instead of as a structured tool call, and the agent logic fits in about 1,000 lines.[9]

The shell can also be changed under the agent. The entrepreneur Danielle Fong pointed out that Claude Code calls programs such as grep and ls all the time, which makes them a place to add behavior, for example an ls that lists a directory by meaning.[8]

Skills inside MCP servers

The two formats are also merging. One suggestion from April 2026 was that an MCP server should ship its skills as MCP resources, with a load_resources tool for clients that don't support resources, so tools and instructions for them arrive together.[10]

History and timeline

  • Aug 2023: Hsieh et al. show that tool documentation can replace demonstrations.[1]
  • Sep 2024: the /llms.txt proposal.[2]
  • Jan to Mar 2026: arguments that code and CLIs beat long lists of structured tools.[7][6]
  • Apr 2026: the proposal to ship skills inside MCP servers.[10]
  • May 2026: Hermes Agent cuts input tokens during file reads by 14 percent on average.[3]

My position

The meta-harness I use, bb and bb-plugins, holds all MCP connections and skills and passes them down to each vendor's otherwise stock harness, so every provider's agent gets the same tools.[11] The case for sharing them this way is argued in Skills, plugins and MCP.

Criticism and counterpoints

The CLI camp argues that MCP itself is unnecessary weight, and that a shell plus well-documented programs gives the agent everything a tool server would.[6][7] If that view wins, skills that explain CLIs may replace many MCP servers.

Open questions

  • Should tool access go through MCP, through CLIs the agent calls from its shell, or through code the agent writes?
  • Will MCP servers ship their skills with their tools, so instructions and tools arrive together?

See also

Change log

Reading

References

  1. ^ Hsieh et al., Tool Documentation Enables Zero-Shot Tool-Usage with Large Language Models (arXiv, Aug 2023)
  2. ^ A proposal for /llms.txt, a file that points models to LLM-friendly content (@jeremyphoward, Sep 2024)
  3. ^ Saving 14% of input tokens on average during file reads in Hermes Agent (@Teknium, May 2026)
  4. ^ Model Context Protocol reference servers (GitHub)
  5. ^ philschmid, mcp-cli: a small command-line client for MCP servers, built for coding agents (GitHub)
  6. ^ Text CLIs beat structured tool calling because Unix commands fill the training data (@daniel_mac8, Mar 2026)
  7. ^ Letting the agent write Playwright code instead of giving it 10+ browser tools (@aidenybai, Jan 2026)
  8. ^ Claude Code calls grep and ls all the time, so inject semantic behavior there (@DanielleFong, Jan 2026)
  9. ^ Hugging Face, smolagents: a small library for agents that write their actions in code (GitHub)
  10. ^ MCP servers should ship skills as resources, with a load_resources fallback tool (@RhysSullivan, Apr 2026)
  11. ^ The harness features I can't live without (post, Nov 2026)