Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mcp_tool_record Struct Reference

Tool definition structure. More...

#include <zephyr/net/mcp/mcp_server.h>

Data Fields

struct mcp_tool_metadata metadata
 Tool metadata.
atomic_t refcount
 Internal refcount.
mcp_tool_callback_t callback
 Tool callback (tools/call).

Detailed Description

Tool definition structure.

Note
refcount is used internally by the MCP server to track tool execution state and protect against the removal of a tool while it is actively executing.

Field Documentation

◆ callback

mcp_tool_callback_t mcp_tool_record::callback

Tool callback (tools/call).

◆ metadata

struct mcp_tool_metadata mcp_tool_record::metadata

Tool metadata.

◆ refcount

atomic_t mcp_tool_record::refcount

Internal refcount.


The documentation for this struct was generated from the following file: