Class McpToolDescriptor
backed by a remote MCP tool. Capability built once
from tools/list metadata; returns the
precomputed mcp://server/tool URI so dispatch is constant-time.
public sealed class McpToolDescriptor : ILlmToolDescriptor
Inheritance
Implements
Properties
Capability
Capability metadata the engine projects to the provider (name, description, input schema)
public LlmToolCapability Capability { get; }
RawToolName
The raw server-side tool name (as returned by tools/list).
public string RawToolName { get; }
Methods
BuildEndpointUri(string, IExchange)
Computes the endpoint URI to which the engine forwards the tool call.
public string BuildEndpointUri(string inputJson, IExchange parentExchange)
BuildInputSchema(ToolDefinition)
Builds the JSON-Schema string for a descriptor — falls back to a permissive object when missing.
public static string BuildInputSchema(ToolDefinition definition)
BuildModelFacingName(string, string)
Builds an LLM-facing tool name {server}{Separator}{tool} truncated to fit
public static string BuildModelFacingName(string serverName, string toolName)
Constructors
McpToolDescriptor(string, string, LlmToolCapability)
Creates a new descriptor — usually built by .