MCP server for managing and hiring agents on the Masumi network, with support for listing agents, retrieving input schemas, hiring agents, and checking job status
The server has 5 tools with explicit definitions in tools.py and prompts.py. Naming is mostly clear (verb-noun pattern: list_agents, get_agent_input_schema, hire_agent, check_job_status, get_job_full_result). Descriptions are present but vary in quality and length. Critical issues: (1) No input schema is visible in the code for get_agent_input_schema despite the tool description mentioning 'Returns a JSON string detailing the input schema', this is about fetching a remote schema, not the tool's own input schema. (2) get_agent_input_schema is defined in prompts.py but the description says 'File: tools.py' which is inconsistent. (3) Tool descriptions lack clarity on return types and structures, responses are free-text JSON strings, not structured objects. (4) The hire_agent tool includes a WARNING in the docstring about not calling with auto-generated input, which is a design smell and suggests the tool is too permissive. (5) Error handling exists (try/catch blocks with ctx.error/warn/info logging) but responses are unstructured error strings, not actionable recovery guidance. (6) No tool annotations (readOnlyHint, destructiveHint, idempotentHint) visible. (7) Output schemas are not formally documented, tools return plain JSON strings or error messages. (8) Per-tool composition looks reasonable (separate tools for listing, fetching schema, hiring, checking status, getting results), but lack of output schema documentation makes chaining unclear.
Checks the status of a job started by hiring an agent.
Retrieves the required input schema for a specific Masumi agent using its URL. Args: agent_identifier: The unique identifier of the agent. api_base_url: The base URL for the agent's API (obtained from 'list_agents'). Returns: A JSON string detailing the input schema, or an error message.
Retrieves the full result of a completed job without truncation.
Hires a Masumi agent using its URL: starts a job and initiates payment. Use 'get_agent_input_schema' first to understand the required structure for 'input_data'. IMPORTANT: The input_data parameter should contain values explicitly provided by the user, not automatically generated by the assistant. Always confirm with the user what specific values they want to use after showing them the input schema. Args: agent_identifier: The unique identifier of the agent. api_base_url: The base URL for the agent's API (obtained from 'list_agents'). input_data: A dictionary representing the input data required by the agent, matching the schema. Example: {"text": "Write a story about a robot learning to paint"} Returns: A message indicating success (including Job ID) or failure details.
Output schemas are not formally documented. All five tools return JSON strings or error messages, but the structure of those responses is not specified in the tool definitions. LLMs cannot plan downstream tool calls or extract required fields (e.g., job_id from hire_agent result) without guessing or trial-and-error.
hire_agent includes a WARNING in its docstring telling the LLM not to auto-generate input, which is a design smell. This constraint should be enforced via schema (e.g., require user confirmation via MRTR or elicitation) or a separate confirmation tool, not documented warnings that LLMs may ignore.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) present. The server declares hire_agent as Risk=WRITE (in metadata provided) but this is not reflected in the tool definition via destructiveHint. This requires the LLM to infer consequences from the description alone.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 48 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 45 | - | v1 |
Lists available agents on the configured Masumi network from the registry. Returns a JSON string of agent entries, including 'agentIdentifier' and 'apiBaseUrl'.
Error handling returns plain text error messages (e.g., 'Error: {status_msg}') without recovery guidance. Per the rubric, error responses must tell the LLM what to do next or categorize the error as retryable/user-fixable/fatal.
Parameter descriptions lack format constraints. 'api_base_url' appears in three tools but the description does not specify expected format (e.g., 'HTTP(S) URL, must end with /'). The code adds '/' if missing, suggesting the LLM might pass malformed URLs.
Tool descriptions lack clarity on prerequisites and dependencies. hire_agent should explicitly state 'First call get_agent_input_schema to understand required input format' rather than relying on the user/agent to infer the multi-step workflow.
The input_data parameter in hire_agent is typed as 'object' with no schema constraints. The description says it should 'match the schema' from get_agent_input_schema but this dependency is not formalized (no $ref, no validation hint). LLMs cannot validate before calling.