get_endpoint_schema
Retrieve detailed schema information for specific API endpoints to understand required parameters and expected responses.
Instructions
Get the full schema for a specific endpoint. Use this to get detailed parameter and response information.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_id | Yes | The API identifier | |
| endpoint_id | Yes | The endpoint identifier (e.g., 'GET /users/{id}') |
Implementation Reference
- src/jitapi/mcp/tools.py:473-500 (handler)The handler method that implements the logic for getting the endpoint schema.
async def _get_endpoint_schema(self, args: dict[str, Any]) -> ToolResult: """Get schema for a specific endpoint.""" api_id = args["api_id"] endpoint_id = args["endpoint_id"] endpoint = self.spec_store.get_endpoint(api_id, endpoint_id) if not endpoint: return ToolResult( success=False, data=None, error=f"Endpoint not found: {endpoint_id}", ) schema = self.schema_formatter.format_endpoint(endpoint) call_details = self.schema_formatter.format_endpoint_for_call(endpoint) # Get dependencies dependencies = self.graph_store.get_dependencies(api_id, endpoint_id) return ToolResult( success=True, data={ "endpoint_id": endpoint_id, "schema": schema, "call_details": call_details, "dependencies": dependencies, }, ) - src/jitapi/mcp/models.py:86-97 (schema)Input validation schema for the get_endpoint_schema tool.
class GetEndpointSchemaInput(BaseModel): """Input for get_endpoint_schema tool.""" api_id: str = Field( ..., description="The API identifier", min_length=1, ) endpoint_id: str = Field( ..., description="The endpoint identifier (e.g., 'GET /users/{id}')", min_length=1, - src/jitapi/mcp/tools.py:291-291 (registration)Registration of the get_endpoint_schema tool handler in the tool set.
"get_endpoint_schema": self._get_endpoint_schema,