Skip to main content
Glama

get_operation_info_tool

Retrieve detailed metadata and information about specific operations in the MCP Kafka Schema Registry server. Input the operation name to access relevant data and insights.

Instructions

Get detailed information about MCP operations and their metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operation_nameNo

Implementation Reference

  • Handler function that retrieves and formats operation metadata including duration, async pattern, guidance, and registry mode.
    def get_operation_info(operation_name: str, registry_mode: str) -> Dict[str, Any]: """Get operation metadata for MCP client guidance.""" metadata = OPERATION_METADATA.get( operation_name, {"duration": OperationDuration.QUICK, "pattern": AsyncPattern.DIRECT}, ) return { "operation": operation_name, "expected_duration": metadata["duration"].value, "async_pattern": metadata["pattern"].value, "guidance": _get_operation_guidance(metadata), "registry_mode": registry_mode, }
  • Output JSON schema for the get_operation_info_tool, allowing arbitrary object properties.
    "get_operation_info_tool": {"type": "object", "additionalProperties": True},
  • Static metadata dictionary defining operation characteristics used by the handler.
    "pattern": AsyncPattern.DIRECT, }, "count_schemas": { "duration": OperationDuration.MEDIUM, "pattern": AsyncPattern.TASK_QUEUE, }, "count_schema_versions": { "duration": OperationDuration.QUICK, "pattern": AsyncPattern.DIRECT, }, "get_registry_statistics": { "duration": OperationDuration.LONG, "pattern": AsyncPattern.TASK_QUEUE, }, }
  • Helper function to generate user guidance based on operation metadata.
    def _get_operation_guidance(metadata: Dict[str, Any]) -> str: """Generate guidance text for operation.""" if metadata["pattern"] == AsyncPattern.TASK_QUEUE: return "Long-running operation. Returns task_id immediately. Use get_task_status() to monitor progress." else: return "Quick operation. Returns results directly."

Other Tools

Related Tools

Latest Blog Posts

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/aywengo/kafka-schema-reg-mcp'

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