Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
toolCallSchemas.ts924 B
import z from "zod"; import { jsonLiteralSchema } from "../../jsonLiteralSchema"; /** * The schema for an Anthropic tool call, this is what a message that calls a tool looks like */ export const anthropicToolCallSchema = z.object({ id: z.string().describe("The ID of the tool call"), type: z.literal("tool_use"), name: z.string().describe("The name of the tool"), input: jsonLiteralSchema.describe("The input for the tool"), }); /** * The type of an Anthropic tool call */ export type AnthropicToolCall = z.infer<typeof anthropicToolCallSchema>; /** * The zod schema for multiple Anthropic tool calls */ export const anthropicToolCallsSchema = z.array(anthropicToolCallSchema); /** * Creates an empty Anthropic tool call with fields but no values filled in */ export function createAnthropicToolCall(): AnthropicToolCall { return { id: "", type: "tool_use", name: "", input: {}, }; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'

If you have feedback or need assistance with the MCP directory API, please join our Discord server