← All notes

MCP tools: tools/list, tools/call and how agent CLIs register them

Answer: In MCP (spec 2025-11-25), a client discovers tools with a tools/list JSON-RPC request, which supports pagination via a cursor and nextCursor. It runs one with tools/call, passing name and arguments. The response result has content (for example a text item) and "isError": false.

Tool definition fields

What a host does with them

Gemini CLI connects to each configured server, discovers its tools and registers them, and also fetches and registers resources if the server exposes any. The /mcp command shows each server's tools, prompts and resources.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: modelcontextprotocol/modelcontextprotocol (GitHub), MCP specification 2025-11-25: Tools, Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE); google-gemini/gemini-cli (GitHub), MCP servers with the Gemini CLI, Apache-2.0 (https://raw.githubusercontent.com/google-gemini/gemini-cli/main/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: modelcontextprotocol/modelcontextprotocol (GitHub), MCP specification 2025-11-25: Tools, Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE); google-gemini/gemini-cli (GitHub), MCP servers with the Gemini CLI, Apache-2.0 (https://raw.githubusercontent.com/google-gemini/gemini-cli/main/LICENSE).

Cite this

Permanent ID: iil:note:qmhb46wv

iinventedlight. 2026. "MCP tools: tools/list, tools/call and how agent CLIs register them." iinventedlight Library, iil:note:qmhb46wv, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-mcp-tools-list-and-call/. License: CC-BY-4.0.

@misc{iil_note_qmhb46wv,
  author = {{iinventedlight}},
  title = {{MCP tools: tools/list, tools/call and how agent CLIs register them}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-16},
  url = {https://iinventedlight.com/library/notes/ao-mcp-tools-list-and-call/},
  note = {Permanent ID iil:note:qmhb46wv. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-mcp-tools-list-and-call.md.