René's URL Explorer Experiment


Title: Agent tools from RPC `args` reach MCP clients as `arg0`/`arg1` with no names or descriptions · Issue #420 · devframes/devframe · GitHub

Open Graph Title: Agent tools from RPC `args` reach MCP clients as `arg0`/`arg1` with no names or descriptions · Issue #420 · devframes/devframe

X Title: Agent tools from RPC `args` reach MCP clients as `arg0`/`arg1` with no names or descriptions · Issue #420 · devframes/devframe

Description: What happens When an RPC function with args is exposed through agent, the MCP (and WebMCP) input schema names each positional arg arg0, arg1, and so on (argsToJsonSchema in packages/devframe/src/agent/to-json-schema.ts). There is no way ...

Open Graph Description: What happens When an RPC function with args is exposed through agent, the MCP (and WebMCP) input schema names each positional arg arg0, arg1, and so on (argsToJsonSchema in packages/devframe/src/ag...

X Description: What happens When an RPC function with args is exposed through agent, the MCP (and WebMCP) input schema names each positional arg arg0, arg1, and so on (argsToJsonSchema in packages/devframe/src/ag...

Opengraph URL: https://github.com/devframes/devframe/issues/420

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Agent tools from RPC `args` reach MCP clients as `arg0`/`arg1` with no names or descriptions","articleBody":"### What happens\n\nWhen an RPC function with `args` is exposed through `agent`, the MCP (and WebMCP) input schema names each positional arg `arg0`, `arg1`, and so on (`argsToJsonSchema` in `packages/devframe/src/agent/to-json-schema.ts`). There is no way to give an arg a name or a description.\n\nWith valibot it gets worse. valibot has no native Standard JSON Schema converter, so each arg falls back to `{ type: 'object', additionalProperties: true }`. The agent sees one opaque `arg0` object and nothing about what goes inside it.\n\n### Repro\n\nThis is the example from the agent-native guide:\n\n```ts\nimport * as v from 'valibot'\nimport { defineRpcFunction } from 'devframe'\n\nexport const getSessionSummary = defineRpcFunction({\n  name: 'rolldown-get-session-summary',\n  type: 'query',\n  args: [v.object({ sessionId: v.string() })],\n  agent: {\n    description: 'Summarize a Rolldown build session.',\n  },\n  setup: () => ({\n    handler: async ({ sessionId }) => ({ sessionId }),\n  }),\n})\n```\n\n`tools/list` returns this input schema:\n\n```json\n{\n  \"type\": \"object\",\n  \"properties\": {\n    \"arg0\": { \"type\": \"object\", \"additionalProperties\": true }\n  },\n  \"required\": [\"arg0\"],\n  \"additionalProperties\": false\n}\n```\n\nThe agent has to guess that it should send `{ \"arg0\": { \"sessionId\": \"...\" } }`. The existing test `falls back to a permissive object for validators without a native converter (valibot)` in `packages/devframe/src/agent/__tests__/to-json-schema.test.ts` pins this output.\n\nWith zod 4 the types come through, but the property is still `arg0`, and a description only shows up if it is set on the schema itself.\n\n### Expected\n\nThe agent sees a named parameter with a type and a description, for example:\n\n```json\n{\n  \"type\": \"object\",\n  \"properties\": {\n    \"sessionId\": { \"type\": \"string\", \"description\": \"Session id from the session list.\" }\n  },\n  \"required\": [\"sessionId\"]\n}\n```\n\n### Why it matters\n\nAgents pick and fill tools from the schema alone. `arg0` with an open object tells them nothing, so they guess, call the tool wrong, or skip it. We're building [Angular DevTools](https://github.com/santoshyadavdev/angular-devtools) on devframe, and we stopped declaring agent tools as RPC `args` for this reason. We register each one with `ctx.agent.registerTool` and a hand-written `inputSchema`, so the schema and the handler types can drift.\n\n### Possible directions\n\nOpen to whichever fits devframe best:\n\n1. **Declare names on the agent options.** For example `agent.params: [{ name: 'sessionId', description: '...' }]`, one entry per positional arg. `argsToJsonSchema` uses those names, and `toolInputToRpcArgs` maps them back to positions. Function parameter names are not reliable at runtime (the handler is built in `setup` and may be minified), so they need to be declared.\n2. **Flatten a single object arg.** When an RPC has exactly one arg and its JSON Schema is an object, advertise its properties at the top level and wrap the payload back into `arg0` on invoke. This covers the common case with no new options, but it changes the wire shape, so it may need an opt in.\n3. **Allow `agent.inputSchema` on RPC functions**, like `registerTool` already allows. This is the smallest change and also gives valibot users a way out, though it keeps the drift problem.\n\nI can send a PR once a direction is agreed.\n","author":{"url":"https://github.com/erkamyaman","@type":"Person","name":"erkamyaman"},"datePublished":"2026-10-01T12:39:47Z","url":"https://github.com/devframes/devframe/issues/420"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9bbc5978-cd54-c0e7-446a-c3d1584e2062
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE194:AF687:1123F99:17828D7:6AFB67B4
html-safe-nonceaac7912bb0003e719fba4f0971c6c14a5c151a7ac4d7b80f7ed26840505ff360
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTk0OkFGNjg3OjExMjNGOTk6MTc4MjhENzo2QUZCNjdCNCIsInZpc2l0b3JfaWQiOiI2OTI1MTY1ODY3ODM1Mjg3NDc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac76d7b9de95f59cbeca2f257808f5ed9b35636ec21a76a9e8291e849efe4da517
hovercard-subject-tagissue:5662280168
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/devframes/devframe/420/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5fcd161e76f498c9e7a062b879d7506455424e244ec9e7f5271302490f02381f/devframes/devframe/issues/420
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5fcd161e76f498c9e7a062b879d7506455424e244ec9e7f5271302490f02381f/devframes/devframe/issues/420
og:image:altWhat happens When an RPC function with args is exposed through agent, the MCP (and WebMCP) input schema names each positional arg arg0, arg1, and so on (argsToJsonSchema in packages/devframe/src/ag...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameerkamyaman
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
go-importgithub.com/devframes/devframe git https://github.com/devframes/devframe.git
octolytics-dimension-user_id279879373
octolytics-dimension-user_logindevframes
octolytics-dimension-repository_id1231722386
octolytics-dimension-repository_nwodevframes/devframe
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1231722386
octolytics-dimension-repository_network_root_nwodevframes/devframe
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/devframes/devframe/issues/420#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fissues%2F420
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fissues%2F420
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=devframes%2Fdevframe
Reloadhttps://github.com/devframes/devframe/issues/420
Reloadhttps://github.com/devframes/devframe/issues/420
Reloadhttps://github.com/devframes/devframe/issues/420
devframeshttps://github.com/devframes
devframehttps://github.com/devframes/devframe
Codehttps://github.com/devframes/devframe
Issues12 (12)https://github.com/devframes/devframe/issues
Pull requests13 (13)https://github.com/devframes/devframe/pulls
Actionshttps://github.com/devframes/devframe/actions
Security and qualityhttps://github.com/devframes/devframe/security
Insightshttps://github.com/devframes/devframe/pulse
https://github.com/devframes/devframe
New issuehttps://github.com/login?return_to=https://github.com/devframes/devframe/issues/420
New issuehttps://github.com/login?return_to=https://github.com/devframes/devframe/issues/420
Agent tools from RPC args reach MCP clients as arg0/arg1 with no names or descriptionshttps://github.com/devframes/devframe/issues/420#top
https://github.com/erkamyaman
erkamyamanhttps://github.com/erkamyaman
on Oct 1, 2026https://github.com/devframes/devframe/issues/420#issue-5662280168
Angular DevToolshttps://github.com/santoshyadavdev/angular-devtools
Sign up for freehttps://github.com/signup?return_to=https://github.com/devframes/devframe/issues/420
Sign in to commenthttps://github.com/login?return_to=https://github.com/devframes/devframe/issues/420
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.