# agent: Remove duplicated description from tool schema \(\#52678\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/46a0262dc5b0daf287e177a9debcc14f7ffba427)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 46a0262dc5b0daf287e177a9debcc14f7ffba427

Requested commit: 46a0262dc5b0daf287e177a9debcc14f7ffba427

Commit: 46a0262dc5b0daf287e177a9debcc14f7ffba427

Tree: 73d0277eeb9b8bd9c40a4515daf033a1c2148f05

Author: Bennet Bo Fenner

Committer: GitHub

## Message

````
agent: Remove duplicated description from tool schema (#52678)

Turns out we were including the description of a tool inside the schema
again, which I don't think is needed.
Before:
```
LanguageModelRequestTool {
    name: "web_search",
    description: "Search the web for information using your query.\nUse this when you need real-time information, facts, or data that might not be in your training.\nResults will include snippets and links from relevant web pages.",
    input_schema: Object {
        "required": Array [
            String("query"),
        ],
        "description": String("Search the web for information using your query.\nUse this when you need real-time information, facts, or data that might not be in your training.\nResults will include snippets and links from relevant web pages."),
        "type": String("object"),
        "properties": Object {
            "query": Object {
                "description": String("The search term or question to query on the web."),
                "type": String("string"),
            },
        },
        "additionalProperties": Bool(false),
    },
    use_input_streaming: false,
},
```



After:
```
LanguageModelRequestTool {
    name: "web_search",
    description: "Search the web for information using your query.\nUse this when you need real-time information, facts, or data that might not be in your training.\nResults will include snippets and links from relevant web pages.",
    input_schema: Object {
        "required": Array [
            String("query"),
        ],
        "type": String("object"),
        "properties": Object {
            "query": Object {
                "description": String("The search term or question to query on the web."),
                "type": String("string"),
            },
        },
        "additionalProperties": Bool(false),
    },
    use_input_streaming: false,
},
```


Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #45315

Release Notes:

- agent: Reduced amount of tokens consumed by tool descriptions
````

## Parents

- [ef4af8f92415f6f3082a2d373fadb5883f8adee1](https://git.cafe/gitcafe/zed/commit/ef4af8f92415f6f3082a2d373fadb5883f8adee1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/46a0262dc5b0daf287e177a9debcc14f7ffba427?format=markdown)
