LearnNewsExamplesServices
Frontmatter
id7513
titleEnhance OpenAPI Spec with Tool Usage Examples
stateClosed
labels
documentationenhancementai
assigneestobiu
createdAtOct 16, 2025, 2:23 PM
updatedAtOct 16, 2025, 2:35 PM
githubUrlhttps://github.com/neomjs/neo/issues/7513
authortobiu
commentsCount0
parentIssue7501
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 16, 2025, 2:35 PM

Enhance OpenAPI Spec with Tool Usage Examples

Closed v11.0.0 documentationenhancementai
tobiu
tobiu commented on Oct 16, 2025, 2:23 PM

The AGENTS.md file contains a valuable "Query Strategies" section with examples of how an agent should use the knowledge base query tool. This contextual information is currently disconnected from the tool's definition.

To make the tools more self-documenting and provide clearer guidance to future agents, we will embed these usage examples directly into the openapi.yaml specification for the query_documents tool.

Acceptance Criteria

  1. The openapi.yaml file is modified.
  2. The requestBody for the POST /documents/query endpoint is enhanced with an examples section.
  3. The examples are sourced from the "Query Strategies" section of AGENTS.md, demonstrating:
    • A broad, conceptual query.
    • A query narrowed down to a specific component.
    • A query targeting a specific content type (e.g., -t guide).
  4. This enhancement makes the tool's intended usage clearer directly from its OpenAPI definition.
tobiu assigned to @tobiu on Oct 16, 2025, 2:23 PM
tobiu added parent issue #7501 on Oct 16, 2025, 2:23 PM
tobiu added the documentation label on Oct 16, 2025, 2:23 PM
tobiu added the enhancement label on Oct 16, 2025, 2:23 PM
tobiu added the ai label on Oct 16, 2025, 2:23 PM
tobiu referenced in commit 05b1447 - "Enhance OpenAPI Spec with Tool Usage Examples #7513" on Oct 16, 2025, 2:35 PM
tobiu closed this issue on Oct 16, 2025, 2:35 PM