Skip to content

Support fixed arguments for tool calls #3038

@Ahmed-Elkholy

Description

@Ahmed-Elkholy

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

**Is your feature request related to a problem?
Currently, agents cannot reliably pass consistent parameters like authentication tokens, base URLs, or other configuration values to tools across multiple invocations. This creates several issues:

  • Agents must be prompted to pass the parameters to the mcp tool calling that requires url and tokens
  • There's no mechanism to enforce required parameters that should remain constant throughout an agent session
  • Security concerns arise from repeatedly passing sensitive values like tokens through the agent's prompt

Describe the solution you'd like
Provide fixed tool parameters as a dictionary when initiating the Toolset.

Describe alternatives you've considered
Using before callback to modify the arguments before the tool calls to add the fixed arguments.
Additional context
Refer to the support done in Strands Agents https://strandsagents.com/latest/documentation/docs/user-guide/concepts/agents/hooks/#fixed-tool-arguments.

Metadata

Metadata

Assignees

Labels

mcp[Component] Issues about MCP support

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions