# Remove unnecessary fields from the tool schemas \(\#29381\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 57d8397f536f46ea1e8623da9bd66477b9e656fa

Requested commit: 57d8397f536f46ea1e8623da9bd66477b9e656fa

Commit: 57d8397f536f46ea1e8623da9bd66477b9e656fa

Tree: 3d3c119494a1c8d20205d90dec8221f12ee4a6bd

Author: Max Brunsfeld

Committer: GitHub

## Message

````
Remove unnecessary fields from the tool schemas (#29381)

This PR removes two fields from JSON schemas (`$schema` and `title`),
which are not expected by any model provider, but were spuriously
included by our JSON schema library, `schemars`.

These added noise to requests and cost wasted input tokens.

### Old

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "FetchToolInput",
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "description": "The URL to fetch.",
      "type": "string"
    }
  }
}
```

### New:

```json
{
  "properties": {
    "url": {
      "description": "The URL to fetch.",
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "type": "object"
}
```

- N/A
````

## Parents

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

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