SkilldexAll articles

Return compact evidence from skill tools

Shape tool responses around the decision the agent must make and retain a path to inspect source detail.

A tool that returns a complete database object forces a model to search through unlimited context before acting. A tool that returns only an answer can hide evidence needed for review. A well-designed response supplies a relevant summary, stable identifiers, and an explicit route to obtain detail.

Separate discovery from inspection

A search tool can return a capped list of matches with ranking, a short excerpt, and a stable record identifier. A follow-up call can read a particular approved record by ID. Use pagination or another explicit continuation signal so a capped response cannot silently masquerade as the complete result set.

Design around common caller decisions

Look at real tasks and identify which fields distinguish candidate records. A compact inventory search can include status and location because those drive selection. Internal history fields can stay in the detail response where a task actually needs them. Mark stale or partial results in a form that callers can detect consistently.

Use examples to show how the context should be interpreted. In particular, include a case with similarly named records so a caller can tell that display labels are descriptive and the record IDs determine which resource receives an action.

Evaluate cost and success together

Measure tool rounds, returned tokens, and outcome correctness on the same fixtures. Removing a field is useful if it reduces clutter without creating an additional call in the most common cases. A detailed endpoint can still handle infrequent edge cases.

Sources