Class McpToolDescriptor

Assembly: redb.Route.Llm.Mcp.dll

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

Object→McpToolDescriptor

Implements

Properties

Capability

Capability metadata the engine projects to the provider (name, description, input schema)

public LlmToolCapability Capability { get; }

EndpointUri

Precomputed mcp://server/tool dispatch URI.

public string EndpointUri { get; }

RawToolName

The raw server-side tool name (as returned by tools/list).

public string RawToolName { get; }

ServerName

Logical MCP server name.

public string ServerName { 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 .