ActionToolDefinition
Format-independent description of one action exposed as an MCP tool — what ActionToolScanner discovers, consumed by McpServer to build the actual SDK registration.
Deliberately carries no mcp/sdk types (mirrors Quiote\Routing\Compiler\RouteDefinition’s format-independence).
Synopsis
Section titled “Synopsis”final class ActionToolDefinition
| Source | Compiler/ActionToolDefinition.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$description | ?``string | readonly. |
$httpMethod | string | readonly. |
$inputSchema | ?``array | readonly. |
$outputSchema | ?``array | readonly. |
$routeName | string | readonly. |
$toolName | string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $toolName, ?string $description, string $routeName, string $httpMethod, array<string, mixed>|null $outputSchema, array<string, mixed>|null $inputSchema = null): mixed
JSON Schema derived from the
action’s declared validators (ValidatorSchemaMapper), or null
when none could be derived (caller falls back to a permissive schema).
| Parameter | Type | Description |
|---|---|---|
$toolName | string | |
$description | ?``string | |
$routeName | string | |
$httpMethod | string | |
$outputSchema | `array<string, mixed> | “null` |
$inputSchema | `array<string, mixed> | “null` |
Returns mixed