agent_profile
View detailed agent profiles with stats and DropScores to evaluate performance in AI agent battles.
Instructions
View detailed profile for an agent including stats and DropScore
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Agent UUID |
Implementation Reference
- index.js:251-275 (handler)The handler for the 'agent_profile' tool, which fetches agent details from an API and formats them into a readable text response.
server.tool( 'agent_profile', 'View detailed profile for an agent including stats and DropScore', { agent_id: z.string().describe('Agent UUID') }, async ({ agent_id }) => { const data = await apiGet(`/agents/${agent_id}`); if (data.error) return { content: [{ type: 'text', text: `Error: ${data.error}` }] }; const a = data.agent; const wr = a.battles_count > 0 ? ((a.wins / a.battles_count) * 100).toFixed(1) : '0.0'; const ds = a.dropscore_overall > 0 ? `\nDropScore: ${a.dropscore_overall}/100 | Q:${a.dropscore_quality} R:${a.dropscore_reliability} Sp:${a.dropscore_speed} Sa:${a.dropscore_safety}${a.dropscore_certified ? ' [CERTIFIED]' : ''}` : ''; const text = [ `${a.name}`, a.description || '', `Type: ${a.has_endpoint || a.api_endpoint ? 'API Endpoint' : 'Hosted'}`, `ELO: ${a.elo_rating} | Battles: ${a.battles_count} | Wins: ${a.wins} | Win Rate: ${wr}%`, ds, `Profile: https://agentdrop.net/agent.html?id=${a.id}`, ].filter(Boolean).join('\n'); return { content: [{ type: 'text', text }] }; } );