Skip to main content
Glama

next_item

Read-onlyIdempotent

Get the highest-risk function to refactor next, including its score, uncovered lines, effort estimate, and verification commands.

Instructions

The highest-risk function to refactor next, as one work packet: score, uncovered lines, effort estimate and the commands that verify the fix. Reach for it when you want one item to act on; worklist is the same ranking as a survey.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoreturn the next N packets instead of one (>= 1, default 1)
repoNopath to the scored repo's root (default: the repo the server was started in)
excludeNoskip items whose path or function name contains this fragment (repeatable)
Install Server

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and idempotentHint=true, covering safety. The description adds selection logic (highest-risk) and return contents (score, uncovered lines, effort estimate, verify commands), which is useful context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with no filler, front-loading the core purpose and the routing to the alternative. Efficient and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

All three parameters are optional and fully documented in the schema. There is no output schema, but the description explains the return contents, making the tool fully invocable without missing information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with clear descriptions for top, repo, and exclude. The description adds no parameter-specific guidance, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific action (return next item) and resource (highest-risk function to refactor), and describes the packet contents. Explicitly contrasts with sibling worklist, so it is clearly distinguishable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit guidance: 'Reach for it when you want one item to act on' and names the alternative 'worklist is the same ranking as a survey.' This tells an agent when to use this versus siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other 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/JeanFrancoisGagne/crapkit'

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