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
| Name | Required | Description | Default |
|---|---|---|---|
| operation_name | No |
Implementation Reference
- task_management.py:207-219 (handler)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, }
- schema_definitions.py:1057-1057 (schema)Output JSON schema for the get_operation_info_tool, allowing arbitrary object properties."get_operation_info_tool": {"type": "object", "additionalProperties": True},
- task_management.py:190-204 (helper)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, }, }
- task_management.py:222-228 (helper)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."