Skip to content

docs: add Tools Output Filtering reference spec#17

Open
Abdul-Moiz31 wants to merge 1 commit into
reshaprio:mainfrom
Abdul-Moiz31:docs/tools-output-filtering
Open

docs: add Tools Output Filtering reference spec#17
Abdul-Moiz31 wants to merge 1 commit into
reshaprio:mainfrom
Abdul-Moiz31:docs/tools-output-filtering

Conversation

@Abdul-Moiz31
Copy link
Copy Markdown

Summary

Adds the reference documentation for the Tools Output Filtering configuration schema (ToolsFilters, apiVersion: reshapr.io/v1alpha1) scheduled for 0.0.12, as tracked in reshaprio/reshapr#10.

Closes #16.

What this PR adds

A new reference page at docs/references/spec-outtools-filtering.md, wired into the References sidebar (between Custom Tools Specification and Resources Specification).

The page documents:

  • Artifact identificationapiVersion and kind rules, and the binding to a discovered Service via service.name / service.version.
  • Per-tool filter keys — how a filter entry under filters: targets an existing imported tool or a previously attached Custom Tool.
  • The retain operation — reShapr's addition to the JSON Patch vocabulary, applied as a pre-processing step that narrows the response before patches run. Rationale, JSON Pointer semantics, ordering, and missing-path behavior are all covered.
  • The patches operation — the six standard JSON Patch operations (add, replace, remove, copy, move, test) with a reference table, the rules for from / value, ordering significance, and a pointer to RFC 6902.
  • Conditional filtering — the list-of-branches form guarded by test, with rules on evaluation order and the "no branch matched" fallback. Mirrors the higher-level conditional construct proposed in reshapr#10.
  • Naming and configuration scope — captures the open design question from reshapr#10 about ToolsFilters being driven by deployment-time concerns and the forward-looking name attribute that would let a Configuration Plan reference a specific filter set.
  • Request lifecycle — where filtering fits: after the protocol converter produces the canonical JSON response, before the JSON-RPC MCP envelope is wrapped. Explains why the same artifact applies uniformly across REST, GraphQL, and gRPC.

Files changed

  • docs/references/spec-outtools-filtering.md (new)
  • sidebars.js — adds the new doc to the References category

Mapping to issue #16 requirements

Issue #16 requirement Where it's covered
Configuration structure mapping "A first example" + bullet rules
Reference syntax and grammar rules retain, patches, and Conditional filtering sections
Configuration boundaries Per-tool keys, Service binding, Naming and configuration scope
Token optimization "Context economics" bullet in the intro
Deterministic tool scoping "Security and determinism" bullet + per-tool filter keys
Pointer to implementation Link to reshapr#10 in the body

Test plan

  • npm run build succeeds (23 docs processed, new page included in llms.txt / llms-full.txt).
  • New page appears in the References sidebar between Custom Tools Specification and Resources Specification.
  • All internal links resolve (../overview/why-reshapr.md, ../explanations/services-and-artifacts.md, ../explanations/configuration-and-exposition.md, ./custom-tools-specification.md).
  • All external links (jsonpatch.com, RFC 6901, RFC 6902, OpenAPI, GraphQL, gRPC) point to authoritative sources.
  • Commit is signed off (DCO).

Signed-off-by: Abdulmoiz <abdulmoiz3140@gmail.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 20, 2026

Deploy Preview for reshaprio ready!

Name Link
🔨 Latest commit 47fca9d
🔍 Latest deploy log https://app.netlify.com/projects/reshaprio/deploys/6a0db50325f08600085337c9
😎 Deploy Preview https://deploy-preview-17--reshaprio.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@yada yada added documentation Improvements or additions to documentation enhancement New feature or request labels May 20, 2026
@yada
Copy link
Copy Markdown
Member

yada commented May 20, 2026

Thanks, @Abdul-Moiz31, looks nice and great: please sign your PR to pass the DCO test (mandatory for review and merge).

@Abdul-Moiz31
Copy link
Copy Markdown
Author

Sure will do in a while

@Abdul-Moiz31 Abdul-Moiz31 force-pushed the docs/tools-output-filtering branch from 36022e4 to 47fca9d Compare May 20, 2026 13:20
@Abdul-Moiz31
Copy link
Copy Markdown
Author

@yada Thankyou !! Please check now .

also i can jump into morer issue's to help shape reshaper.io

Please feel free to assign me

Looking forward

@yada
Copy link
Copy Markdown
Member

yada commented May 20, 2026

@yada Thankyou !! Please check now .

also i can jump into morer issue's to help shape reshaper.io

Please feel free to assign me

Looking forward

Do not hesitate to create issues and open discussions if you have ideas to improve the doc or find typos, issues, missing sections... Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create doc Reference for declarative tools output filtering

2 participants