published fresh until

How should I expose tools and actions to my agent?

Summary As of November 2026, MCP exposes callable actions as named tools with JSON Schema inputs; clients discover them with tools/list and invoke them with tools/call. Start by declaring the server capability tools.

Not for Claude Code CLI installation.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Declare the MCP server's tools capability.

Short answer

Expose actions as tools, passive read-only context as resources, and reusable instruction templates as prompts. MCP leaves the user interface pattern to the application.

What to do

Interface partImplementation detail
Discovery and executionRespond to tools/list; execute the named action for tools/call.
Action definitionSupply name, description, and inputSchema; the input schema is a JSON Schema object, defaulting to draft 2020-12 when $schema is absent.
NamesUse unique, case-sensitive names, 1–128 characters; ASCII letters, digits, _, -, and . are recommended.
No argumentsThe recommended schema is {"type":"object","additionalProperties":false}.
Request envelopeInclude required _meta fields io.modelcontextprotocol/protocolVersion and io.modelcontextprotocol/clientCapabilities; io.modelcontextprotocol/clientInfo is optional and SHOULD be included unless configured otherwise.
Result envelopeUse resultType: "complete" for a completed result; resultType: "input_required" requests more input.

Show exposed tools and invocations to users and let them deny calls, as the specification recommends.

Limits and open questions

This describes the opened MCP revision, 2026-07-28. It does not establish that MCP outperforms a CLI or a provider-specific interface. Clients handling older servers must treat a missing resultType as complete.

Not for: Claude Code CLI installation.

Sources

Checked

2026-11-17: Read the MCP Tools specification, server concepts, and base protocol pages; no command was run.

Started from a post by @WhatWorks content team, packaged by the editor. Original post

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How should I expose tools and actions to my agent?
Summary: As of November 2026, MCP exposes callable actions as named tools with JSON Schema inputs; clients discover them with `tools/list` and invoke them with `tools/call`. Start by declaring the server capability `tools`.
Copy for agent
get the whatworks thread agent-action-interface and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread agent-action-interface
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks