GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: outputSchema for mcp tools should be exposed to LLM · Issue #27577 · anomalyco/opencode

[FEATURE]: outputSchema for mcp tools should be exposed to LLM #27577

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: outputSchema for mcp tools should be exposed to LLM#27577
Copy link
Assignees
rekram1-node

Description

@bo-tato
bo-tato
opened on May 14, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

For MCP tools, the optional outputSchema provides information about the output to expect from the tool. But opencode is not including this in context, only the tool description. According to the MCP spec:

Providing an output schema helps clients and LLMs understand and properly handle structured tool outputs by:
...
Guiding clients and LLMs to properly parse and utilize the returned data

so I think the information from tool's outputSchema should be included in the LLM context in some way.

Reacted by Marcin Kwiek

Activity

  1. bo-tato
    changed the title [-][FEATURE]: output_schema (in some format) for mcp tools should be exposed to LLM[/-] [+][FEATURE]: outputSchema for mcp tools should be exposed to LLM[/+] on May 14, 2026
  2. github-actions
    assigned
    rekram1-node
    on May 14, 2026
  3. rekram1-node commented on May 14, 2026

    @rekram1-node
    rekram1-node
    on May 14, 2026
    Member
    More actions

    wdym, im pretty sure we respect this can u show me how we arent?

  4. bo-tato commented on May 14, 2026

    @bo-tato
    bo-tato
    on May 14, 2026
    ContributorAuthor
    More actions

    previously I'd checked making manual curl requests to my MCP server that it was returning the outputSchema with descriptions, and asked the LLM in opencode for full description it had of the MCP tool, and if it sees "string from description of output parameter" anywhere in it's context, and it said it didn't see the string, and the description it returned was the tool description without anything about the outputSchema. then I searched issues for outputSchema and found #21591 where someone (well with emdash so probably an llm) says "opencode doesn't use outputSchema — it only reads inputSchema in convertMcpTool()".

    and just now to be completely sure I ran opencode through mitmproxy, and for the MCP tool it is sending:

    {
                "type": "function",
                "name": "mcp_tool_name",
                "description": "tool description",
                "parameters": {
                        ...info from inputSchema here...
                }
    },
    

    but the outputSchema is not present, and searching the strings from the descriptions in the outputSchema with mitmproxy they are not being sent at all

  5. rekram1-node commented on May 15, 2026

    @rekram1-node
    rekram1-node
    on May 15, 2026
    Member
    More actions

    oh ic what ur saying now i was misunderstanding

  6. github-actions commented on Jul 14, 2026

    @github-actions
    github-actionsBot
    on Jul 14, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  7. github-actions
    closed this as not plannedon Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.