Skip to content

Control What Agents Can Use ​

Every client sees your connectors through two tools, search_tools and call_tool. Out of the box, an agent can find and call every tool of every connector. Four settings narrow that. Each only takes away; none can give an agent more than the others allow.

toml
# ~/.config/wayfindr/wayfindr.toml
[connectors.gmail]
url   = "https://gmail.example.com/mcp"
tools = ["@read", "create_draft"]        # a tools list: read and draft, never send

[profiles.acme]                          # a profile a client can pick by name
connectors = ["github", "linear"]
toml
# ~/src/acme-api/.wayfindr.toml          # a project scope
connectors = ["github", "linear"]
sh
# a scoped client token for an unattended job
wayfindr token create nightly-triage --connector github --connector linear

Which one do I use? ​

You want toUse
Block a tool everywhere, such as send_message or deletesA tools list
Allow only read-only tools of a connectorA tools list with @read
Give agents in one repository fewer connectors or toolsA project scope
Do the same for a client that connects over HTTPA profile
Keep limits for a project out of its repositoryA profile
Hold an unattended agent to some connectors, whatever it is toldA scoped client token
Keep an agent away from the admin API (secrets, credentials, call log)A scoped client token

How they combine ​

LayerWho sets itNarrowsCan the client drop it?
Client tokenYou, with wayfindr token createConnectorsNo
Tools listYou, in the configTools of a connectorNo
ProfileYou define it; the client picks itConnectors and toolsYes
Project scopeThe project's .wayfindr.tomlConnectors and toolsYes

A tool is in reach only when every layer allows it. A profile that names a connector the token doesn't allow doesn't add it back, and a scope file can't show a tool your tools list hides.

The client token is checked first. A connector it doesn't allow is as if it weren't configured: it is left out of search_tools results, unavailable, and error messages, and the agent never sees a "hidden by" message for it.

A profile and a project scope are for keeping a cooperative agent focused. The client picks them, by a flag, a URL parameter, or the directory it starts in, and a client that leaves them off gets everything its token allows. They are no defense against an agent that does what a prompt injection tells it to. For that, use a scoped client token.

What agents see ​

search_tools never returns a tool a layer hides, and a lookup by names lists it under missing. call_tool refuses one and names the layer, so you know where to change it:

Hidden bycall_tool sayswayfindr calls shows
Client tokenThere is no tool called gmail.send: no connector is called gmail.rejected: no_connector
Tools listgmail.send_message is hidden by the tools list of [connectors.gmail] in your Wayfindr config.rejected: hidden_by_policy
Profilegithub.create_pull_request is hidden by the Wayfindr profile acme.rejected: hidden_by_profile
Project scopegmail.send_message is hidden by this project's Wayfindr scope (.wayfindr.toml).rejected: hidden_by_scope

To see what an agent gets in a directory, with every layer applied:

sh
cd ~/src/acme-api
wayfindr scope --profile acme

See wayfindr scope.

Released under the Apache 2.0 License.